15.10.2014, 20:23
Tenta ver este comando e pegar alguma coisa dele
pawn Код:
COMMAND:kickar(playerid, params[])
{
new PlayerToKick, Reason[128], ReasonMsg[128], Name[24];
if (APlayerData[playerid][LoggedIn] == true)
{
if (APlayerData[playerid][PlayerLevel] >= 1)
{
if (sscanf(params, "us[128]", PlayerToKick, Reason)) SendClientMessage(playerid, 0xFF0000AA, "Use: \"/kickar <ID> <Motivo>\"");
else
if (IsPlayerConnected(PlayerToKick))
{
GetPlayerName(playerid, Name, sizeof(Name));
format(ReasonMsg, 128, "Vocк foi kikado pelo %s %s", AdminLevelName[APlayerData[playerid][PlayerLevel]], Name);
SendClientMessage(PlayerToKick, 0xFF0000FF, ReasonMsg);
format(ReasonMsg, 128, "Motivo: %s", Reason);
SendClientMessage(PlayerToKick, 0xFF0000FF, ReasonMsg);
Kick(PlayerToKick);
}
else
SendClientMessage(playerid, 0xFF0000FF, "Este Jogador nгo estб online");
}
else
return 0;
}
else
return 0;
return 1;
}