19.02.2017, 17:07
CMD:kickar(playerid, params[])
{
new id, motivo[256], string[256], nAdmin[MAX_PLAYER_NAME], nPlayer[MAX_PLAYER_NAME];
if(pAdmin[playerid][Level] < 1) return SendClientMessage(playerid, -1, "[x] Vocк nгo tem permissгo");
if(sscanf(params, "us", id, motivo)) return SendClientMessage(playerid, vermelho, "[x] Use: /kickar [id] [motivo]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, vermelho, "[x] Nenhum player logado com este id!");
GetPlayerName(playerid, nAdmin, sizeof nAdmin);
GetPlayerName(id, nPlayer, sizeof nPlayer);
format(string, sizeof string, "O(A) %s %s kickou o player %s pelo motivo: %s",CargoAdmin(playerid), nAdmin, nPlayer, motivo);
SendClientMessageToAll(azul, string);
Kick(id);
return 1;
}
Tenta ai.
{
new id, motivo[256], string[256], nAdmin[MAX_PLAYER_NAME], nPlayer[MAX_PLAYER_NAME];
if(pAdmin[playerid][Level] < 1) return SendClientMessage(playerid, -1, "[x] Vocк nгo tem permissгo");
if(sscanf(params, "us", id, motivo)) return SendClientMessage(playerid, vermelho, "[x] Use: /kickar [id] [motivo]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, vermelho, "[x] Nenhum player logado com este id!");
GetPlayerName(playerid, nAdmin, sizeof nAdmin);
GetPlayerName(id, nPlayer, sizeof nPlayer);
format(string, sizeof string, "O(A) %s %s kickou o player %s pelo motivo: %s",CargoAdmin(playerid), nAdmin, nPlayer, motivo);
SendClientMessageToAll(azul, string);
Kick(id);
return 1;
}
Tenta ai.