Command Cooldown 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)
+--- Thread: Command Cooldown timer (
/showthread.php?tid=379578)
Command Cooldown timer -
Godfather[TR] - 22.09.2012
Hello guys, ok i mean this
a example of the command usage
/votekick
*Dialog pops up*
Please type in this bar he ID you wan't to votekick.
XXXX Player has started a votekick to the player: XXXX type "/yes" or "/no"
Ok after 30sec the vote ends, and we say that the guy is kicked or not no matter.
On the next time, when another player or when a player types the command to votekick again, i want that it blocks, and says this message
example command usage
/votekick
ERROR: You can not vote again, please wait 3Minute to votekick again.
like this, can anyone help me?
and this system is a filterscript.
Thanks between please answer
Re: Command Cooldown timer -
Godfather[TR] - 22.09.2012
BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP BUMP
Re: Command Cooldown timer -
jameskmonger - 22.09.2012
Why did you bump it after only waiting 30 minutes?
Re: Command Cooldown timer -
Godfather[TR] - 22.09.2012
Because the priority is really High :/ Sorry for bump btw
Re: Command Cooldown timer -
jameskmonger - 22.09.2012
Use a PVar.
Check if it is 0 when the player does the command.
When they do the command, set the PVar to 1 and set a timer to change playerid's pvar to 0