Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public IRC_OnUserSay(botid, recipient[], user[], host[], message[])
- {
- if(ServidorInfo[MsgsIrcChat] == 1){
- if(strcmp(user,BOT1NOMEPRINCIPAL,false) && strcmp(user,BOT2NOMEPRINCIPAL,false)){
- if(message[0] != '!'){
- new MsgNivelUsuario[2],CoresNivelUsuario,MsgMandarNoChat[200];
- if(IRC_IsOwner(botid,recipient,user)){ MsgNivelUsuario ="~"; CoresNivelUsuario = Vermelho;}else
- if(IRC_IsAdmin(botid,recipient,user)){ MsgNivelUsuario ="&"; CoresNivelUsuario = Vermelho;}else
- if(IRC_IsOp(botid,recipient,user)){ MsgNivelUsuario ="@"; CoresNivelUsuario = Vermelho;}else
- if(IRC_IsHalfop(botid,recipient,user)){ MsgNivelUsuario ="%"; CoresNivelUsuario = Laranja;}else
- if(IRC_IsVoice(botid,recipient,user)){ MsgNivelUsuario ="+"; CoresNivelUsuario = Verde;}else{
- MsgNivelUsuario="-"; CoresNivelUsuario = Branco;}
- EditarAcentos(message);
- format(MsgMandarNoChat,sizeof(MsgMandarNoChat),"{%06x}<%s%s>{FFFAFA}: %s",CoresNivelUsuario>>>8,MsgNivelUsuario,user,message);
- S_MandarMensagemParaTodos(CoresNivelUsuario,0xFFFAFAFF,MsgMandarNoChat);}}}
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement