Raised This Month: $ Target: $400
 0% 

[help] shop menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 07-28-2014 , 08:42   [help] shop menu
Reply With Quote #1

if someone choice the menu
after execute if he got gravity
if he is again open shop menu
directly you will able to shop in next round

how to do ???

explain me
__________________
Thanks everyone. #miss_you_all
indraraj striker is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 07-28-2014 , 08:46   Re: [help] shop menu
Reply With Quote #2

Use a bool. Set it to true when the player got his gravity. In function of the command where you display the menu, check if the bool is true and if so, return some value. Reset the bool to false on new round event by looping trough maxplaers.
OR, you can use bits, which don't need indexes. Here - https://forums.alliedmods.net/showthread.php?t=139916
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 07-28-2014 , 08:50   Re: [help] shop menu
Reply With Quote #3

Quote:
Originally Posted by Flick3rR View Post
Use a bool. Set it to true when the player got his gravity. In function of the command where you display the menu, check if the bool is true and if so, return some value. Reset the bool to false on new round event by looping trough maxplaers.
OR, you can use bits, which don't need indexes. Here - https://forums.alliedmods.net/showthread.php?t=139916
TY i got it
__________________
Thanks everyone. #miss_you_all
indraraj striker 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 12:22.


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