SA-MP Forums Archive
settimer 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: settimer help (/showthread.php?tid=295032)



settimer help - marik1322 - 04.11.2011

How to create command that will join to this settimer
i want that player use command to join this dm
and for that they need to join to settimer
PHP код:
if(!strcmp(cmdtext"/dm2"true))
{
if(
IsPlayerAdmin(playerid))
{
 
SetTimer("racesec"100000);
}




Re: settimer help - SmiT - 04.11.2011

Could you be more clear?


Re: settimer help - marik1322 - 04.11.2011

i just want to know how to SetTimer("racesec", 10000, 0);
for all player not only to the player that use the command


Re: settimer help - Calgon - 04.11.2011

Could you show us the code inside of the racesec function?


Re: settimer help - marik1322 - 04.11.2011

never mind i did like that and it working
PHP код:
for(new 0MAX_PLAYERSi++)
{
SetTimerEx("racesec",10000,false,"i",i);