07.01.2017, 20:21
how i can send message just to IRC Administrators :/ ??
I think you can send a notice to your channel where you prepend the channel name with the desired minimum rank, so for example: @#channel.
Also please choose a proper title next time instead of this clickbait. |
IRC_SendMessageToAdmins(level,const string[])
{
new levelbeen[5];
new levelstring[80];
if (level < 1 || level > 5) printf("*** IRC_SendMessageToAdmins: Invalid level. level: %d Message: %s", level, string);
switch(level)
{
case 1:{levelbeen="+";}
case 2:{levelbeen="%";}
case 3:{levelbeen="@";}
case 4:{levelbeen="&";}
case 5:{levelbeen="~";}
}
format(levelstring,sizeof(levelstring),"%s"IRC_ECHO"",levelbeen);
IRC_GroupSay(ircgroup,levelstring,string);
format(levelstring,sizeof(levelstring),"%s"IRC_CREW"",levelbeen);
IRC_GroupSay(ircgroup,levelstring,string);
return 1;
}
IRC_SendMessageToAdmins(5, "I've sent a message to irc owners");
I got this thing in my script, to send messages to irc admins, ofc replace things you need to:
PHP код:
PHP код:
|