SA-MP Forums Archive
Gang zone help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Gang zone help (/showthread.php?tid=481223)



Gang zone help - tamirshoval - 14.12.2013

Hello there pps
So i made that thing:
Код:
    if(!strcmp(cmdtext, "/GangAttack"))
    {
            
              if(IsPlayerInArea(playerid,1084.6677, -2080.3093, 1210.2527, -1993.6479))//min_x,max_y,max_x,min_y
    {
GangZoneFlashForPlayer(playerid,Grove1,COLOR_RED);

        return 1;
    }
well,that gave me alot of errors...
and i made a timer of 2 minutes,
I want him to start,and when he will over,the gangzone will change his color,acording to the var
so... thanks for help if you know.
B-T-W heres the timer
Код:
 SetTimer("GangAttack",120000,0);
so i want that one to start and when it will end it will change the zone color acording to var (if you want to send me a code example,use var1 var2 and etc or just gang names)


Re: Gang zone help - arakuta - 14.12.2013

Use SetTimerEx, so you can pass as a parameter the team that is attacking, and other things


Re: Gang zone help - tamirshoval - 14.12.2013

i did
Код:
SetTimerEx("GangAttack",120000,0,playerid,"Attack is over");
]
is that fine?
gotta go to sleep btw.