Hello 
This is a frequent question, so I do a tutorial for it.
Add this code anywhere and put in Init(): level thread AddBots(number of bots you want,what team);
If you want lvl 70 add in OnPlayerSpawned()
The command to spawn a test bot is this:

This is a frequent question, so I do a tutorial for it.
Add this code anywhere and put in Init(): level thread AddBots(number of bots you want,what team);
Code:
AddBots(number,team)
{
for(i=0;i<number;i++)
{
botz[i] = addtestclient();
if(!isdefined(botz[i]))
{
wait 1;
continue;
}
botz[i].pers["isBot"] = true;
botz[i] thread BotData(team);
wait 0.1;
}
}
BotData(team)
{
self endon("disconnect");
while(!isdefined(self.pers["team"]))
wait 0.05;
self notify("menuresponse",game["menu_team"],team);
wait 0.05;
self notify("menuresponse","changeclass","class"+randomInt(5));
}
If you want lvl 70 add in OnPlayerSpawned()
Code:
self SetPlayerData("experience",9999999999999999999);
The command to spawn a test bot is this:
Code:
name = addtestclient();