15.06.2012, 19:09
here is my cmd:
it just shows SERVER:unkown cmd
pawn Код:
CMD:test(playerid, params[])
{
new id;
new reason[128];
new kick[128];
new kickmsgtoadmin[128];
new name[MAX_PLAYER_NAME];
if(PInfo[playerid][Padmin] > 0)
{
if(sscanf(params,"uc",id,reason)) return SendClientMessage(playerid, -1, "UAGE: /kick <id> <reason>");
GetPlayerName(id,name,sizeof(name));
format(kick, sizeof(kick), "you have been kicked by %s for reason: %c", name, reason);
SendClientMessage(id, ORANGE, kick);
format(kickmsgtoadmin, sizeof(kickmsgtoadmin), "you have kicked %s for reason: %c", name, reason);
SendClientMessage(playerid, -1, kickmsgtoadmin);
Kick(id);
} return true;
}