SA-MP Forums Archive
Setting IRC Bots as Admins - 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: Setting IRC Bots as Admins (/showthread.php?tid=447582)



Setting IRC Bots as Admins - nor15 - 30.06.2013

This is what in the IRC script

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;

but when i try /cs access #igzls add LSCNR 3 it says Channel access lists may only contain registered nicknames.


Re: Setting IRC Bots as Admins - nor15 - 30.06.2013

any one ?!


Re: Setting IRC Bots as Admins - Kirollos - 30.06.2013

1. don't bump
2. register an account for your bots so you are able to make them login & get their ranks


Re: Setting IRC Bots as Admins - Kurzalewski - 30.06.2013

You can't just identify without being registered. However, you can do:

Quote:

/msg NickServ help register

to see how to register and then register them


Re: Setting IRC Bots as Admins - jackci - 01.07.2013

On IRC,

Change your nick to the bot's nick and type /ns register <password> <email>

pawn Код:
#define IRC_BOT_PASSWORD *bot pass*

public IRC_OnConnect(botid, ip[], port)
{
    format(string,sizeof(string),"PRIVMSG NickServ :IDENTIFY %s",IRC_BOT_PASSWORD);
    IRC_SendRaw(botid, string);
    return 1;
}



Re: Setting IRC Bots as Admins - Zex Tan - 01.07.2013

Wrong topic.