Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding bots
#1
A handy simple little snippet to add an amount of bots to your match at a certain rate:
Code:
addBots(amount, delay)
{
    for(i = 0; i <= amount; i++)
    {
        wait(delay);
        bots = [];
        bots[i] = addtestclient();
        waittillframeend;
        bots[i].pers["isBot"] = true;
        bots[i] notify("menuresponse", game["menu_team"], "autoassign");
        waittillframeend;
        bots[i] notify("menuresponse", "changeclass", "class" + randomInt(5));
    }
}

For example:
Code:
thread addBots(10, 7);
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] How Do i add bots to my mod menu? .CFG oda521 10 10,759 11-22-2013, 17:11
Last Post: oda521

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.