Raised This Month: $ Target: $400
 0% 

Destroy menu to all


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 07-23-2011 , 15:23   Destroy menu to all
Reply With Quote #1

I have a voting for something in the server, and when the vote ends people still get to look at the menu, until they press on a choice or choose MENU_EXIT. How can I destroy the menu to all the players? is there a function for it?
Diegorkable is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 07-23-2011 , 15:25   Re: Destroy menu to all
Reply With Quote #2

Loop through the players and use

PHP Code:
show_menu(id0"^n"1); 
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 07-23-2011 , 16:06   Re: Destroy menu to all
Reply With Quote #3

Quote:
Originally Posted by nikhilgupta345 View Post
Loop through the players and use

PHP Code:
show_menu(id0"^n"1); 
You can actually use 0 instead of id to show to all players.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 07-23-2011 , 16:58   Re: Destroy menu to all
Reply With Quote #4

Oh, because on the funcwiki it says player index between 1 and 32, so I didn't think 0 could be passed for all players.

My bad.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
DjOptimuS
Senior Member
Join Date: Jan 2009
Old 07-23-2011 , 17:51   Re: Destroy menu to all
Reply With Quote #5

http://www.amxmodx.org/funcwiki.php?go=func&id=1050
DjOptimuS is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-23-2011 , 17:53   Re: Destroy menu to all
Reply With Quote #6

Quote:
Originally Posted by DjOptimuS View Post
That destroys the menu resource and memory usage but does not change the menu on a player's screen which is to what the OP was refering.
__________________
fysiks is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 07-23-2011 , 19:34   Re: Destroy menu to all
Reply With Quote #7

@nikhilgupta, what is the "^n" for?
Diegorkable is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 07-23-2011 , 20:21   Re: Destroy menu to all
Reply With Quote #8

Quote:
Originally Posted by Diegorkable View Post
@nikhilgupta, what is the "^n" for?
You can't send a blank menu ("") or just a space (" "), but "^n" works.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
HBxander
Senior Member
Join Date: Jan 2011
Location: Behind you!
Old 07-23-2011 , 20:16   Re: Destroy menu to all
Reply With Quote #9

Its for 'cleaning' the line, instead of adding some new text.
^n just change to next line, when you use that, the menu will be 'invisible' since its a new menu without anything showing.
__________________
Selling:

- PointMod for Hide And Seek - $20
- Private BlockMaker with Weapon Block And More - $50
- Achievements ( FFA GamePlay ) - $25

PM Me about Private Work!
HBxander is offline
Reply


Thread Tools
Display Modes

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 00:46.


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