Hello! I've gone through this over and over again, and I can't really see the problem..
pawn Код:
COMMAND:kick(playerid, params[])
{
new pname[MAX_PLAYER_NAME];
new name[MAX_PLAYER_NAME];
new id;
new str[128];
if(IsPlayerAdmin(playerid))
{
if (sscanf(params, "u", id)) return SendClientMessage(playerid, 0xB4B5B7FF, "USAGE: /kick <PLAYERID>");
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(id,pname, sizeof(pname));
format(str, sizeof(str), "Administrator %s has kicked %s!", name, pname);
SendClientMessageToAll(0xB4B5B7FF, str);
kick(id);
}
return 1;
}
No way.. Thank you