Show menu
I have an admin menu with certain privileges, how do I make it accessible only three rounds after the map starts?
|
Re: Show menu
Add a variable to count the number of rounds that have been started then check that in your admin command fucntion. If it's not enough return PLUGIN_HANDLED.
|
Re: Show menu
maybe some example?
|
Re: Show menu
1. Register the new round event.
2. In that functions add 1 to the round count variable. 3. In your admin command function, check if your round count variable is greater than 3 (or greater than or equal to 3). If not true then return PLUGIN_HANDLED. Semi-pseudo code :): PHP Code:
|
Re: Show menu
PHP Code:
|
Re: Show menu
You want to show a message to all the players that the menu is available? You can do that in the newround/endround event (if the required number of rounds has passed).
|
Re: Show menu
i want to show message only for player who have acces to menu...
PHP Code:
|
| All times are GMT -4. The time now is 13:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.