AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   What's command.. (https://forums.alliedmods.net/showthread.php?t=134028)

zirualas 07-31-2010 02:00

What's command..
 
Quote:

Originally Posted by Vechta (Post 1256355)
use bool for it..

How use this command.
Hee said this words when i ask
I have theres another bug, basically when you write /vipmenu you can take a item. you write it again and you can take another item. I wants it to be so that you can only use it once per round.

Vechta 07-31-2010 03:53

Re: What's command..
 
solved ?

fysiks 07-31-2010 17:53

Re: What's command..
 
Make a global boolean variable array (size 33) and set it to true when they use the menu. Then, on new round, set it back to false.

Devil259 07-31-2010 18:34

Re: What's command..
 
Example :

PHP Code:

new bool:myBooleen[33]
 
public 
blabla()
{
     if ( 
blabla )
     {
          
// stuff
          
myBooleen[id] = true;
     }




All times are GMT -4. The time now is 00:17.

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