SA-MP Forums Archive
how ? - 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: how ? (/showthread.php?tid=625889)



how ? - Yaa - 07.01.2017

how i can send message just to IRC Administrators :/ ??


Re: how ? - Vince - 07.01.2017

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.


Re: how ? - Yaa - 07.01.2017

Quote:
Originally Posted by Vince
Посмотреть сообщение
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.
Thanks You !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I was searching for this function 1 year ago !

THANKS


Re: how ? - iLearner - 07.01.2017

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"); 



Re: how ? - Yaa - 07.01.2017

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