if timer is running then ...? - 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: if timer is running then ...? (
/showthread.php?tid=429369)
if timer is running then ...? -
NicholasA - 09.04.2013
So when SetTimer("message", 1000, false); is running i want you to not be able to /poop
Re: if timer is running then ...? -
Riddick94 - 09.04.2013
pawn Код:
new bool:poop;
forward message();
public message()
{
if(poop)
{
// Can't poop.
}
else if(!poop)
{
// You can poop.
}
}
Make a command or something where you can change poop global status. if poop global variable is turned on (value: true) then you can't do a poop, because it's says that server turned a command blocking. If it's false then you can.
However, you could do this other way, without timer but.. it's your choice.