04.06.2012, 02:57
pawn Код:
CMD:banir(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) SendClientMessage(playerid, COR_VERMELHO, "[INFO] Vocк nгo й um admin.");
new giveid;
new texto[128];
if(sscanf(params, "us", giveid, texto)) return SendClientMessage(playerid, COR_CINZA, "[INFO] Use: /banir [id/nome].");
new msgban[128];
new nome[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, nome, sizeof(nome));
format(msgban, sizeof(msgban), "O jogador %s foi banido pelo admin %s. Motivo: %s.", nome[giveid], nome[playerid], texto);
SendClientMessageToAll(COR_VERMELHO, msgban);
Ban(giveid);
return 1;
}

