if(isdefined(self.pers["isbot"] && self.pers["isbot"])); { //he's a bot }
for(i = 0; i < level.players.size; i++) { Kick(level.players[i] GetEntityNumber()); }
(08-04-2011, 11:34)Puffiamo Wrote: I want this: kick only bot
for(i = 0; i < level.players.size; i++) { if(isdefined(level.players[i].pers["isbot"]) && level.players[i].pers["isbot"]){ Kick(level.players[i] GetEntityNumber());} }
(08-04-2011, 11:36)Pozzuh Wrote: (08-04-2011, 11:34)Puffiamo Wrote: I want this: kick only bot Code: for(i = 0; i < level.players.size; i++) { if(isdefined(level.players[i].pers["isbot"]) && level.players[i].pers["isbot"]){ Kick(level.players[i] GetEntityNumber());} } is that so hard with the code I already gave you?
if(response == "bot_kick" ) { self closeMenu(); self closeInGameMenu(); for(i = 0; i < level.players.size; i++) { if(isdefined(level.players[i].pers["isbot"]) && level.players[i].pers["isbot"]) { Kick(level.players[i] GetEntityNumber()); } } continue; }
if(response == "bot_kick" ) { self closeMenu(); self closeInGameMenu(); for(i = 0; i < level.players.size; i++) { if(isdefined(level.players[i].pers["isbot"]) && level.players[i].pers["isbot"]) { iprintlnbold(level.players[i].name + " should be kicked"); //Kick(level.players[i] GetEntityNumber()); } } continue; }