• 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);
[-] The following 1 user says Thank You to TemeraireTeamp for this post:
  • Nekochan
  Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)