is their a function? - 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: is their a function? (
/showthread.php?tid=245280)
is their a function? -
CrazyBlob - 30.03.2011
hi guys im wondering if their a function for a timer example
Код:
if(timer = is going)
{
//code
}
thanks
im trying to make it so if you disconnect it'll kill the timer if a timer is going on you
Re: is their a function? -
spedico - 30.03.2011
You could use variables, but I don't see why you wouldn't just use KillTimer.
Re: is their a function? -
KaleOtter - 30.03.2011
new playertimer[MAX_PLAYERS]; // above your script.
When you enable the timer:
playertimer[playerid] = SetTimer....
onplayerdisconnect:
KillTimer(playertimer[playerid]);
Re: is their a function? -
CrazyBlob - 30.03.2011
thnks