SA-MP Forums Archive
IRC Script - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: IRC Script (/showthread.php?tid=424170)



IRC Script - nor15 - 20.03.2013

This shit spam my IRC , and i dunno how to stop it

PHP код:
public IRC_ConnectDelay(tempid)
{
    switch (
tempid)
    {
        case 
1:
        {
            
// Connect the first bot
            
gBotID[0] = IRC_Connect(IRC_SERVERIRC_PORTBOT_1_NICKNAMEBOT_1_REALNAMEBOT_1_USERNAME);
        }
        case 
2:
        {
            new 
string[128];
            
// Connect the second bot
            
gBotID[1] = IRC_Connect(IRC_SERVERIRC_PORTBOT_2_NICKNAMEBOT_2_REALNAMEBOT_2_USERNAME);
            
IRC_GroupSay(gGroupIDIRC_CHANNEL,"5#####################################");
            
format(string,sizeof(string),"5%s (%s)",sabbv,svname);
            
IRC_GroupSay(gGroupIDIRC_CHANNEL,string);
            
format(string,sizeof(string),"5Version %s",sversion);
            
IRC_GroupSay(gGroupIDIRC_CHANNEL,string);
            
IRC_GroupSay(gGroupIDIRC_CHANNEL,"5The sexual Gamemode.");
            
IRC_GroupSay(gGroupIDIRC_CHANNEL,"5#####################################");
        }
        case 
3:
        {
            
// Connect the admin bot
            
gBotID[2] = IRC_Connect(IRC_SERVERIRC_PORTBOT_3_NICKNAMEBOT_3_REALNAMEBOT_3_USERNAME);
        }
    }
    return 
1;




Re: IRC Script - Joshman543 - 20.03.2013

Are the bots able to successfully connect? If not then remove the IRC_GroupSay text.


Re: IRC Script - nor15 - 20.03.2013

Quote:
Originally Posted by Joshman543
Посмотреть сообщение
Are the bots able to successfully connect? If not then remove the IRC_GroupSay text.
They come to IRC but in the server Logs it says
Код:
[21:20:51] *** IRC_OnDisconnect: Bot ID 3 attempting to reconnect...
[21:21:30] *** IRC_OnDisconnect: Bot ID 1 disconnected!
[21:21:30] *** IRC_OnDisconnect: Bot ID 1 attempting to reconnect...
[21:21:38] *** IRC_OnDisconnect: Bot ID 2 disconnected!
[21:21:38] *** IRC_OnDisconnect: Bot ID 2 attempting to reconnect...
[21:21:51] *** IRC_OnDisconnect: Bot ID 3 disconnected!
[21:21:51] *** IRC_OnDisconnect: Bot ID 3 attempting to reconnect...



Re: IRC Script - nor15 - 21.03.2013

can anyone help ?