same menu, different options
i have made the command 'Password Server' accessed through an amx menu, but once that is pressed how do i get it so that the menu will change to 'Remove Password' and when the user presses it it'll perform server_cmd("sv_password """) and then change back?
|
*bump*
|
set a global variable to tell you what state it is in..
When you run the command the first time set some global variable to true, then the next time you run the command, check the variable, if it is true then show the "Remove" menu (diff code block/function) and if it is false then show the "Password" menu.. Basically just make a "flag" variable... |
yea, but how would i change the 'Password Server' option to 'Remove Password' without making another menu?
|
| All times are GMT -4. The time now is 17:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.