- Messages
- 5,121
- Reaction score
- 2,886
- Points
- 1,103
- Thread starter
- #121
Maybe did you test the code?Does banning help?
Code:function removeBots(count) { currBots = 0; foreach(player in level.players) { if(currBots < count) { if(isDefined(player.pers["isBot"]) && player.pers["isBot"]) { ban(player getEntityNumber()); kick(player getEntityNumber()); currBots ++; } } } IPrintLn(count + " ^2Bots were removed!"); }