AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [help] shop menu (https://forums.alliedmods.net/showthread.php?t=245095)

indraraj striker 07-28-2014 08:42

[help] shop menu
 
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 :)

Flick3rR 07-28-2014 08:46

Re: [help] shop menu
 
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

indraraj striker 07-28-2014 08:50

Re: [help] shop menu
 
Quote:

Originally Posted by Flick3rR (Post 2175067)
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 :D


All times are GMT -4. The time now is 13:12.

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