View Single Post
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-24-2011 , 10:32   Re: Open menu only once per round
Reply With Quote #2

Create a boolean variable and set it to false when the player is spawned. When the player opens the menu set it to true. Only allow the player to open the menu if the boolean is false.

PHP Code:
new boolg_bUsedMenu33 ];

//Spawn
g_bUsedMenuid ] = false;

//In menu function
if ( g_bUsedMenuid ] )
     return

g_bUsedMenuid ] = true;

//menu code 
__________________
Bugsy is offline