Search:

Search: Search took 1.00 seconds.

  1. Replies
    19
    Views
    13,664

    self.previousPosition = self.origin; ...

    self.previousPosition = self.origin;
    self.campTik = 0;
    while (1)
    {
    if (isAlive(self) && (!isDefined(self.flagAttached) || !self.flagAttached) && self.pers["team"] == "allies"...
  2. Replies
    19
    Views
    13,664

    my code is resistant to this if you have properly...

    my code is resistant to this if you have properly organized code (default, standard from .iwd) and use "thread"

    try set self.flagAttached = false by default

    p.s: and try fix some by self, if...
  3. Replies
    19
    Views
    13,664

    Instead of while (1) you can check while...

    Instead of while (1) you can check while (isDefined(self)) or use endon at top of method
  4. Replies
    19
    Views
    13,664

    self.flagAttacher this flag saw player has...

    self.flagAttacher

    this flag saw player has flag or no, add it in checkLoop()


    /* ... */
    while (1)
    {
    if (isAlive(self) && !self.flagAttached && (team == "allies" || team...
  5. Replies
    19
    Views
    13,664

    add in checkLoop() /* ... */ ...

    add in checkLoop()


    /* ... */

    //ALL "CAMP_SECS_*" vars must be multiples of "waitTime" (4 / 0.1 & 6 / 0.1 == true => good)
    CAMP_RADIUS = level.campradius;
    CAMP_SECS_WARN =...
  6. Replies
    19
    Views
    13,664

    :D self thread...

    :D


    self thread scriptfolder/_camper::checkLoop();
  7. Thread: COD2 Teleport

    by IzNoGoD
    Replies
    7
    Views
    5,789

    Should be args, not arg.

    Should be args, not arg.
  8. Thread: COD2 Teleport

    by IzNoGoD
    Replies
    7
    Views
    5,789

    shoudl be getentitynumber() Note the () behind...

    shoudl be getentitynumber()
    Note the () behind it.
  9. Thread: COD2 Teleport

    by Ni3ls
    Replies
    7
    Views
    5,789

    use /developer 1 before launching the mod. Then...

    use /developer 1 before launching the mod. Then you can see the error
  10. Replies
    7
    Views
    5,789

    try teleport() { level endon("boot");...

    try


    teleport()
    {
    level endon("boot");
    level endon("round_ended");

    setcvar("teleport", "");
    while(1)
  11. Replies
    19
    Views
    13,664

    Script is really very boring, but besides, there...

    Script is really very boring, but besides, there are a lot of nuances to consider.
    Try something like this


    /* start this (self ...();) when play connected on server */
    onPlayerConnect()
    {...
  12. Replies
    19
    Views
    13,664

    This forum tends to perform poorly when asked for...

    This forum tends to perform poorly when asked for full scripts for free.

    However, if you try yourself we're pretty good at helping when you hit roadblocks.

    As a sidenote: this script would be...
  13. Replies
    1
    Views
    3,255

    libcod: //server start: {...

    libcod:


    //server start:
    {
    setCvar("scr_gchat", "1"); //chat enabled default
    }

    codecallback_playercommand(args)
    {
Results 1 to 13 of 13