![]() |
Everyone with client.var....
I'm trying to make a script that kicks everyone in a level who has a client.chance variable of 2, for example. I'm not sure how to make it so that whoever says /kick 2, everyone with client.chance=2 gets kicked. Right now it only kicks you if yourself. What I mean is, it only kicks you, no one else. How can I make it kick everyone what has client.chance=2?
Here is the script: PHP Code:
|
You have to loop through the current players in the level and check each individual players client.chance value.
|
You need to loop through each player.
PHP Code:
Keep in mind you should only use the above script in the level once. |
Thanks:)
|
| All times are GMT +2. The time now is 10:58 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.