Raised This Month: $ Target: $400
 0% 

Hiding menu options & Drop weapon [ Solved ]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 04-28-2006 , 14:52  
Reply With Quote #4

For the menu, try making a global variable, ie, g_MenuDone[33].

On putinserver, assign every id g_MenuDone[id] = 0.

Do a check in the menu,
Code:
if(g_MenuDone[id])
checks if the player has g_MenuDone[id] 1, if its 1, stop the menu from showing to that player, if not, show the menu.

Everytime they make a selection, make the players id 1,
Code:
g_MenuDone[id] = 1

On every round end, reset the variable. So on round end, you should have something like
Code:
public reset(id)      {      g_MenuDone[id] = 0 }
That way on round start, everyone can access the menu again.
organizedKaoS is offline
 



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 05:06.


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