Help with random bool:[id]
Im trying to give random people chainsaws to people when they spawned.
Somehow my random num's like not working becuase none of us got a chainsaw. HelpZ? PHP Code:
|
Re: Help with random bool:[id]
Make sure your spawn hook is post spawn (so it will detect they are alive).
|
Re: Help with random bool:[id]
Once you have checked what Emp` said, you can make this easy code optimization:
PHP Code:
|
Re: Help with random bool:[id]
so
is a random num is an operator? or i can do like this ZOMG(1,2)? |
Re: Help with random bool:[id]
It's not an operator, it's a native function.
random : http://www.amxmodx.org/funcwiki.php?go=func&id=41 random_float: http://www.amxmodx.org/funcwiki.php?go=func&id=285 random_num: http://www.amxmodx.org/funcwiki.php?go=func&id=286 |
Re: Help with random bool:[id]
Someone know with random(0) return 145345 something like that.
|
Re: Help with random bool:[id]
ooo
i c so it is only a too b? cannot do a b c? or 1 , 2 , 3? and yet are there an alternative to random num O.O |
Re: Help with random bool:[id]
Quote:
|
| All times are GMT -4. The time now is 01:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.