AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to limit the use of a menu item? (https://forums.alliedmods.net/showthread.php?t=303887)

Themaze 12-26-2017 05:55

How to limit the use of a menu item?
 
I mean if i want an item inside a menu to be bought only once per round How could i do that?

zmd94 12-26-2017 07:52

Re: How to limit the use of a menu item?
 
Just try global integer variable.

DjSoftero 12-26-2017 12:01

Re: How to limit the use of a menu item?
 
you should have understanding on how things work. As zmd94 suggested, create a global variable and for set it to true/false and check the value before executing a certain part of code.


All times are GMT -4. The time now is 11:52.

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