IRC Voice
#1

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

I believe this is a question for the IRC Forums?

OT: You'll need a bot for that.
Reply
#3

Already got.
Reply
#4

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

I got SFCRRPG
Reply
#6

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;

Reply
#7

Please i refer you to: http://ircforums.net/
Reply
#8

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

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.
Reply
#10

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 ?!
Reply
#11

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

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 ?
Reply


Forum Jump:


Users browsing this thread: