Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- @Função: Ajuda você a formatar uma mensagem
- @Créditos: [iPs]SuYaNw
- AVISO: Precisará desta função: http://pastebin.com/Y8geULaH
- */
- static stock Punir(pid, quem, str[], color, motivo[] = "NO")
- {
- s_Static:st<100>;
- if(!strcmp(motivo,"NO", true))
- {
- format(st, sizeof(st),"[INFO]: %s[ID:%i] %s o(a) player %s[ID:%i]", GetNick(pid), pid, str, GetNick(quem), quem);
- return SendClientMessageToAll(color, st);
- }
- else
- {
- 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);
- return SendClientMessageToAll(color, st);
- }
- }
- //Exemplo:
- Punir(playerid, giveplayerid, "Baniu", -1, "##");
- // Saida [INFO]: Garfield's[ID:0] Baniu o(a) player Chuao[ID:50], Motivo: ##
Advertisement
Add Comment
Please, Sign In to add comment