01.11.2011, 19:41
pawn Код:
new cmd[128], idx;
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/kick", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] <= 1342)
{
new tmp[128];
tmp = strtok(cmdtext, idx);
if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "USE: /kick [ID DO PLAYER]");
Kick(strval(tmp));
return 1;
}
else
{
SendClientMessage(playerid, 0xFFFFFFFF, " Vocк nгo й Admin!");
}
}
}