SA-MP Forums Archive
IRC Voice - 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 Voice (/showthread.php?tid=446308)



IRC Voice - nor15 - 25.06.2013

I got a IRC script , but i want that when anyone join the IRC channel , he get voice on the IRC


Re: IRC Voice - introzen - 25.06.2013

I believe this is a question for the IRC Forums?

OT: You'll need a bot for that.


Re: IRC Voice - nor15 - 25.06.2013

Already got.


Re: IRC Voice - introzen - 25.06.2013

What server are you on? What bot u got?
give me more info...


Re: IRC Voice - nor15 - 25.06.2013

I got SFCRRPG


Re: IRC Voice - nor15 - 25.06.2013

PHP код:
public IRC_OnConnect(botid)
{
    new 
string[256];
    
printf("*** IRC_OnConnect: Bot ID %d connected!"botid);
    
// Join the channel
    
if(botid == || botid == 2)
    {
        
IRC_JoinChannel(botidIRC_CHANNEL);
        
format(string,sizeof(string),"PRIVMSG NickServ :identify %s",IRC_BOT_PASSWORD);
        
IRC_SendRaw(botidstring);
        
IRC_AddToGroup(gGroupIDbotid);
    }
    if(
botid == 3)
    {
        
format(string,sizeof(string),"PRIVMSG NickServ :identify %s",IRC_BOT_PASSWORD);
        
IRC_SendRaw(botidstring);
        
format(string,sizeof(string),"JOIN %s :%s",IRC_ADMINCHANNEL,IRC_ADMINCHANNEL_PASSWORD);
        
IRC_SendRaw(botidstring);
        
IRC_AddToGroup(gGroupAdminIDbotid);
    }
    
// Add the bot to the group
    
return 1;




Re: IRC Voice - Anak - 25.06.2013

Please i refer you to: http://ircforums.net/


Re: IRC Voice - nor15 - 25.06.2013

i wanna the command not on the irc , it's a script , so can anyone help me ?


Re: IRC Voice - introzen - 25.06.2013

pawn Код:
public IRC_OnConnect(botid)
{
    new string[256];
    printf("*** IRC_OnConnect: Bot ID %d connected!", botid);
    // Join the channel
    if(botid == 1 || botid == 2)
    {
        IRC_JoinChannel(botid, IRC_CHANNEL);
        format(string,sizeof(string),"PRIVMSG NickServ :identify %s",IRC_BOT_PASSWORD);
        IRC_SendRaw(botid, string);
        IRC_AddToGroup(gGroupID, botid);
    }
    if(botid == 3)
    {
        format(string,sizeof(string),"PRIVMSG NickServ :identify %s",IRC_BOT_PASSWORD);
        IRC_SendRaw(botid, string);
        format(string,sizeof(string),"JOIN %s :%s",IRC_ADMINCHANNEL,IRC_ADMINCHANNEL_PASSWORD);
        IRC_SendRaw(botid, string);
        IRC_AddToGroup(gGroupAdminID, botid);
    }
    if(botid == voiceid)
    {
        IRC_SetMode(botid, "+v");
    }
    // Add the bot to the group
    return 1;
}
Try this please.


Re: IRC Voice - nor15 - 25.06.2013

Quote:
Originally Posted by introzen
Посмотреть сообщение
pawn Код:
public IRC_OnConnect(botid)
{
    new string[256];
    printf("*** IRC_OnConnect: Bot ID %d connected!", botid);
    // Join the channel
    if(botid == 1 || botid == 2)
    {
        IRC_JoinChannel(botid, IRC_CHANNEL);
        format(string,sizeof(string),"PRIVMSG NickServ :identify %s",IRC_BOT_PASSWORD);
        IRC_SendRaw(botid, string);
        IRC_AddToGroup(gGroupID, botid);
    }
    if(botid == 3)
    {
        format(string,sizeof(string),"PRIVMSG NickServ :identify %s",IRC_BOT_PASSWORD);
        IRC_SendRaw(botid, string);
        format(string,sizeof(string),"JOIN %s :%s",IRC_ADMINCHANNEL,IRC_ADMINCHANNEL_PASSWORD);
        IRC_SendRaw(botid, string);
        IRC_AddToGroup(gGroupAdminID, botid);
    }
    if(botid == voiceid)
    {
        IRC_SetMode(botid, "+v");
    }
    // Add the bot to the group
    return 1;
}
Try this please.
This will make anyone enter will take voice ?!


Re: IRC Voice - introzen - 25.06.2013

You have to decide what players shall get voice and replace "voiceid" with their id.


Re: IRC Voice - nor15 - 25.06.2013

Quote:
Originally Posted by introzen
Посмотреть сообщение
You have to decide what players shall get voice and replace "voiceid" with their id.
ok , but will this make admins take also voice ? or only people who don't have voice or anything ?