Kill timer? - 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: Kill timer? (
/showthread.php?tid=132950)
Kill timer? -
DarkPower - 10.03.2010
Hi i have made something and i was use Timer and it work, i run timer by command /moli and i wanna when timer end to timer get killed so just one count..
here is the code
Код:
if(strcmp("/moli", cmdtext, true) == 0)
{
if(PlayerToPoint(5.0,playerid,2490.2896,918.3433,11.0234))
{
SendClientMessage(playerid, 0xFF0005FF,"Pricekaj 30 sekundi da se pomolis....");
TogglePlayerControllable(playerid,0);
SetTimer("Molitva", 30000, true);
}
return 1;
}
Код:
public Molitva(playerid)
{
SendClientMessage(playerid,0x00FF0AFF,"Pomolio si se i dobio 100$ nagrade....");
GivePlayerMoney(playerid,100);
TogglePlayerControllable(playerid,1);
}
and how to kill timer

?? on public Molitva(playerid), can someone put code for killing timer??
tnx
Re: Kill timer? -
Deat_Itself - 10.03.2010
Код:
SetTimer("Molitva", 30000, true);
change it to
Код:
SetTimer("Molitva", 30000, false);
Re: Kill timer? -
DarkPower - 10.03.2010
Quote:
Originally Posted by _Saif_
Код:
SetTimer("Molitva", 30000, true);
change it to
Код:
SetTimer("Molitva", 30000, false);
|
Thank you alot....