killtimer 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: killtimer help (
/showthread.php?tid=347155)
killtimer help -
Aloushi - 31.05.2012
Код:
if (strcmp("/rainbowcaroff", cmdtext, false, 14) == 0)
{
SendClientMessage(playerid, COLOR_RED, "Rainbow Car has been turned off.");
KillTimer(CTimer1);
KillTimer(CTimer2);
KillTimer(CTimer3);
KillTimer(CTimer4);
KillTimer(CTimer5);
return 1;
}
this command when type it player i will kill timer for all player how to make it for player kill timer only not for all kill timer
how to make this command for kill timer for player not for kill timer for all player
Re: killtimer help -
ViniBorn - 31.05.2012
Are you using SetTimerEx ?
Re: killtimer help -
TzAkS. - 31.05.2012
Try creating the timer like this
Код:
new CTimer1[MAX_PLAYERS];
Код:
CTimer1[playerid] = SetTimer....
Код:
KillTimer(CTimer1[playerid]);
Re: killtimer help -
MadeMan - 31.05.2012
How do you set the timer?
Re: killtimer help -
Aloushi - 31.05.2012
fail im fixed it