pawn Код:
CMD:kick(playerid, params[])
{
new String[128], Motivo[128], ID;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo tem permissгo para usar este comando!");
if(sscanf(params, "us[128]", ID, Motivo)) return SendClientMessage(playerid, -1, "Digite: /kick <id> <motivo>");
if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, -1, "Jogador nгo conectado!");
new pNome[MAX_PLAYER_NAME], iNome[MAX_PLAYER_NAME];
GetPlayerName(playerid, pNome, sizeof(pNome));
GetPlayerName(ID, iNome, sizeof(iNome));
format(String, sizeof(String), "(%d) %s kickou o jogador: (%d) %s - Motivo: %s", playerid, pNome, ID, iNome, Motivo);
SendClientMessageToAll(-1, String);
Kick(ID);
return 1;
}