02.02.2009, 13:06
pawn Код:
if(!strcmp("/kick", cmdtext, true, 5) && (Job[playerid] == GM || IsPlayerIsAdmin(playerid)))
if(!(cmdtext[5] || '0' <= cmdtext[6] <= '9')) return SendClientMessage(playerid, 0xFFFFFFAA, "Right Usage: /kick [playerid]");
else if(!Kick(strval(cmdtext[6]))) return SendClientMessage(playerid, 0xFFFFFFAA, "Warning: Invalid Playerid");
else return SendClientMessage(playerid, 0xFFFFFFAA, "Player successfully kicked!");