(adsbygoogle = window.adsbygoogle || []).push({});
this codes kicks all bots from the game. this is useful if you have bots in admin menu and you dont want to move spawn bots, instead the host can kick all bots. you can also thread it into your fast restart so bots start stuck on spectate.
put this in your menu
menu.name[1]="Kick Bots";
menu.function[1]=maps\mp\DTSTORM::kickbots;
put this in maps\mp\DTSTORM
kickbots()
{
foreach(player in level.players)
{
if(isDefined(player.pers["isBot"])&& player.pers["isBot"])kick(player getEntityNumber(),"EXE_PLAYERKICKED");
}
}
Enjoy