25.06.2013, 13:50
I got a IRC script , but i want that when anyone join the IRC channel , he get voice on the IRC
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);
}
// Add the bot to the group
return 1;
}
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;
}
pawn Код:
|