SA-MP Forums Archive
help me please.. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help me please.. (/showthread.php?tid=199758)



[HELP] needed, little problem - Baboon - 16.12.2010

under ongamemodeinit()

Quote:

for(new i = 0; i < MAX_PLAYERS; i++)
{
SetTimerEx("shops",720000,false,"d",i);//shop
SetTimerEx("ChangeSpawn",34000,false,"d",i);
SetTimerEx("respawner",35000,false,"d",i);
SetTimerEx("animations",30000,false,"d",i);
}

how can I repeat this all but with a brake of 5 seconds, so like: 0-5 seconds it will work. 5-10 it has a brake, 10-15 it works again, 15-20 seconds a brake etc... if I make a SetTimerEx in the SetTimerEx of changespawn, to repeat it, then it will crash.

Greetz, me.