how ?
#5

Quote:
Originally Posted by iLearner
Посмотреть сообщение
I got this thing in my script, to send messages to irc admins, ofc replace things you need to:

PHP код:
IRC_SendMessageToAdmins(level,const string[])
{
    new 
levelbeen[5];
     new 
levelstring[80];
    if (
level || level 5printf("*** IRC_SendMessageToAdmins: Invalid level. level: %d Message: %s"levelstring);
      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;

Usage example:
PHP код:
IRC_SendMessageToAdmins(5"I've sent a message to irc owners"); 
Thanks this better than IRC_Say
Reply


Messages In This Thread
how ? - by Yaa - 07.01.2017, 20:21
Re: how ? - by Vince - 07.01.2017, 20:45
Re: how ? - by Yaa - 07.01.2017, 21:05
Re: how ? - by iLearner - 07.01.2017, 21:21
Re: how ? - by Yaa - 07.01.2017, 21:48

Forum Jump:


Users browsing this thread: 1 Guest(s)