for(i = 0; i < level.players.size; i++){ if(level.players[i] is_bot()) Kick(level.players[i] GetEntityNumber());}
if(isDefined(self.pers["isBot"]) && self.pers["isBot"]) { //Do stuff here }
if(self is_bot()) { //Do stuff here }
(08-04-2011, 12:41)XeroK Wrote: Try with is_bot() So: C Code for(i = 0; i < level.players.size; i++){ if(level.players[i] is_bot()) Kick(level.players[i] GetEntityNumber());}
(08-04-2011, 13:01)master131 Wrote: If you are a human the isBot stat isn't defined so you have to use this: Code:if(isDefined(self.pers["isBot"]) && self.pers["isBot"]) { //Do stuff here } or this (requires utility.gsc to be included) Code:if(self is_bot()) { //Do stuff here }