@Anti-Scripto I can think of you could try this
#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
init()
{
level thread onPlayerConnect();
}
onPlayerConnect()
{
for(;;)
{
level waittill("connected", player);
player thread autoBotSpawnFunctioning();
}
}
init_bot()
{
if(self.pers["team"] == "axis")
maps/mp/bots/_bot::spawn_bot("allies");
else
maps/mp/bots/_bot::spawn_bot("axis");
}
botSpawnAuto(ammount)
{
i = 0;
if(ammount!=0)
{
while(i<ammount)
{
init_bot();
i++;
}
}
}
autoBotSpawnFunctioning()
{
wait 0.1;
while(level.players.size<=1)
{
botSpawnAuto(2);
}
}