Command Cooldown timer
#1

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
Reply
#2

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
Reply
#3

Why did you bump it after only waiting 30 minutes?
Reply
#4

Because the priority is really High :/ Sorry for bump btw
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)