garfield

[COD]: Ajuda você a formatar uma mensagem

Jan 27th, 2012
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.78 KB | None | 0 0
  1. /*
  2.                 @Função:  Ajuda você a formatar uma mensagem
  3.                 @Créditos: [iPs]SuYaNw
  4.                    
  5.                 AVISO: Precisará desta função: http://pastebin.com/Y8geULaH
  6. */
  7.  
  8. static stock Punir(pid, quem, str[], color, motivo[] = "NO")
  9. {
  10.     s_Static:st<100>;
  11.     if(!strcmp(motivo,"NO", true))
  12.     {
  13.         format(st, sizeof(st),"[INFO]: %s[ID:%i] %s o(a) player %s[ID:%i]", GetNick(pid), pid, str, GetNick(quem), quem);
  14.         return SendClientMessageToAll(color, st);
  15.     }
  16.     else
  17.     {
  18.         format(st, sizeof(st),"[INFO]: %s[ID:%i] %s o(a) player %s[ID:%i], Motivo: %s", GetNick(pid), pid, str, GetNick(quem), quem, motivo);
  19.         return SendClientMessageToAll(color, st);
  20.     }
  21. }
  22.  
  23. //Exemplo:
  24. Punir(playerid, giveplayerid, "Baniu", -1, "##");
  25. // Saida [INFO]: Garfield's[ID:0] Baniu o(a) player Chuao[ID:50], Motivo: ##
Advertisement
Add Comment
Please, Sign In to add comment