BR_Gustavo

Falar chat normal IRC

Sep 22nd, 2018
115
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public IRC_OnUserSay(botid, recipient[], user[], host[], message[])
  2. {
  3.     if(ServidorInfo[MsgsIrcChat] == 1){
  4.     if(strcmp(user,BOT1NOMEPRINCIPAL,false) && strcmp(user,BOT2NOMEPRINCIPAL,false)){
  5.     if(message[0] != '!'){
  6.     new MsgNivelUsuario[2],CoresNivelUsuario,MsgMandarNoChat[200];
  7.     if(IRC_IsOwner(botid,recipient,user)){ MsgNivelUsuario ="~"; CoresNivelUsuario = Vermelho;}else
  8.     if(IRC_IsAdmin(botid,recipient,user)){ MsgNivelUsuario ="&"; CoresNivelUsuario = Vermelho;}else
  9.     if(IRC_IsOp(botid,recipient,user)){ MsgNivelUsuario ="@"; CoresNivelUsuario = Vermelho;}else
  10.     if(IRC_IsHalfop(botid,recipient,user)){ MsgNivelUsuario ="%"; CoresNivelUsuario = Laranja;}else
  11.     if(IRC_IsVoice(botid,recipient,user)){ MsgNivelUsuario ="+"; CoresNivelUsuario = Verde;}else{
  12.     MsgNivelUsuario="-"; CoresNivelUsuario = Branco;}
  13.     EditarAcentos(message);
  14.     format(MsgMandarNoChat,sizeof(MsgMandarNoChat),"{%06x}<%s%s>{FFFAFA}: %s",CoresNivelUsuario>>>8,MsgNivelUsuario,user,message);
  15.     S_MandarMensagemParaTodos(CoresNivelUsuario,0xFFFAFAFF,MsgMandarNoChat);}}}
  16.     return 1;
  17. }
RAW Paste Data