Random Action
Hi,
Can someone please, give me a script that, for example, when someone types /power in chat, he randomly gets one power? (like gravity, godmode, maxspeed, noclip). I only need the part that chooses randomly the power to give to the player. Thanks so much! |
Re: Random Action
PHP Code:
|
Re: Random Action
Thanks!
Just a plus: Is there a way to modify the chances of each one? like: gravity 35% godmode 1% speed 64% thanks! |
Re: Random Action
Code:
new x = random_num(1, 100); |
| All times are GMT -4. The time now is 09:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.