Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IRCCMD:addchild
- {
- if(IsOwner)
- {
- if(child == 1) return IRC_Say(gBotID, channel, "You already have childs connected!");
- format(stri, sizeof(stri), "%s childs connecting", params);
- IRC_Say(gBotID, channel, stri);
- new childnumb;
- sscanf(params, "d", childnumb);
- TIMER = 1000;
- child = 1;
- childgroup = IRC_CreateGroup();
- for(new i = 0; i < childnumb; i++)
- {
- SetTimerEx("ConnectDelay", TIMER, 0, "i", i);
- TIMER += 1000;
- }
- }
- return 1;
- }
- public ConnectDelay(botid)
- {
- new bot,botname[32];
- format(botname,sizeof(botname),"FunBot[%d]",i);
- bot = IRC_Connect("emu.irc.tl", 6667, botname, "Funbot Child", "Child");
- IRC_AddToGroup(childgroup, bot);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement