addBotClients()
{
wait 5;
for(;
{
if(getCvarInt("scr_numbots") > 0)
break;
wait 1;
}
iNumBots = getCvarInt("scr_numbots");
for(i = 0; i < iNumBots; i++)
{
ent = addtestclient();
wait 0.5;
if(isPlayer(ent))
{
if(i & 1)
{
ent notify("menuresponse", game["menu_team"], "axis");
wait 0.5;
ent notify("menuresponse", game["menu_weapon_axis"], "kar98k_mp");
}
else
{
ent notify("menuresponse", game["menu_team"], "allies");
wait 0.5;
ent notify("menuresponse", game["menu_weapon_allies"], "springfield_mp");
}
}
}
}
Above is a code written in I think C++ for Call of Duty and it's a way to get bots in multiplayer
what I need help with is as you can see they only choose (Axis: Kar98k)(Allies: Springfield) I would like them to choose a gun out of random guns

You can change the gun that they spawn with but not make them choose a gun randomly I've tried for hours to figure it out, not as simple as I assumed

*yawn*