06.06.2012, 09:12
Hi all,how i can stop a timer? for example when someone rob a store then:
if (strcmp("/rob", cmdtext, true, 10) == 0)
When player type /rob then he wait 20 sec and and take money,but the timer still working and the player takes money every 20 seconds without need to type /rob!! How i can stop the timer??
Thanks,
jimis
if (strcmp("/rob", cmdtext, true, 10) == 0)
PHP код:
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, 1952.9886,1017.6065,992.4688))
if(robdragons[playerid] == 1)
{
SetTimer("Binco", 20000, true);
SendClientMessage(playerid, COLOR_YELLOW, " 20 seconds left");
RD[playerid] = 1;
}
else
SendClientMessage(playerid,COLOR_RED ,"[ERROR]You are not at a rob point (if you are new plese type /help)");
return 1;
}
Thanks,
jimis