block function after x time
Hi, i think it's basic pawn scripting, but i really forgot how to do this.
I made a plugin that displays a menu when someone says "/gun". I want that the clients can't open the menu by saying "/gun" after X (variable) sec after the beginning of the round (before freezetime), and then, it prints to all (id = 0) : Time is Up, /gun won't work anymore! I serched a bit in amx mod x documentation but didn't find an event or somethin that can do this. Anyone for help ? Thank you. |
Re: block function after x time
Use a bool. Set it to true on round start and the set task with the time you need. In that task, set the bool to false. I want to note that you don't need indexes in the bool, since that restrictoons aplies to all players.
|
Re: block function after x time
Thank you, u took the time to answer to an idiot question, i'll test this, but i'm sure it's the good way to this.
Problem Solved, Thank you Flick3rR ^^ |
Re: block function after x time
Quote:
PHP Code:
|
| All times are GMT -4. The time now is 13:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.