Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.70 KB | None | 0 0
  1. IRCCMD:addchild
  2. {
  3.     if(IsOwner)
  4.     {
  5.         if(child == 1) return IRC_Say(gBotID, channel, "You already have childs connected!");
  6.         format(stri, sizeof(stri), "%s childs connecting", params);
  7.         IRC_Say(gBotID, channel, stri);
  8.         new childnumb;
  9.         sscanf(params, "d", childnumb);
  10.         TIMER = 1000;
  11.         child = 1;
  12.        
  13.         childgroup = IRC_CreateGroup();
  14.         for(new i = 0; i < childnumb; i++)
  15.         {
  16.             SetTimerEx("ConnectDelay", TIMER, 0, "i", i);
  17.             TIMER += 1000;
  18.         }
  19.     }
  20.     return 1;
  21. }
  22.  
  23. public ConnectDelay(botid)
  24. {
  25.     new bot,botname[32];
  26.     format(botname,sizeof(botname),"FunBot[%d]",i);
  27.     bot = IRC_Connect("emu.irc.tl", 6667, botname, "Funbot Child", "Child");
  28.     IRC_AddToGroup(childgroup, bot);
  29.     return 1;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement