Raised This Month: $ Target: $400
 0% 

same menu, different options


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Wassa
Junior Member
Join Date: Aug 2004
Old 09-21-2004 , 13:40   same menu, different options
Reply With Quote #1

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?
Wassa is offline
Wassa
Junior Member
Join Date: Aug 2004
Old 09-22-2004 , 13:07  
Reply With Quote #2

*bump*
Wassa is offline
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 09-23-2004 , 19:47  
Reply With Quote #3

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...
xeroblood is offline
Send a message via MSN to xeroblood
Wassa
Junior Member
Join Date: Aug 2004
Old 09-29-2004 , 14:37  
Reply With Quote #4

yea, but how would i change the 'Password Server' option to 'Remove Password' without making another menu?
Wassa is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode