02.07.2011, 06:11
Quote:
Congratulations on the professional and descriptive title.
Not sure who posted this, but It's in my old edit of luxadmin: pawn Код:
|
Код:
dcmd_kick(playerid, params[]) { new pID, reason[24], string[128] ; #if !defined ADMIN_REJECT_MSG if(GetPVarInt(playerid, "VIP") < 3) return 0; #else if(GetPVarInt(playerid, "VIP") < 3) return SendError(playerid, ADMIN_REJECT_MSG); #endif else if(sscanf(params, "us", pID, reason)) SendUsage(playerid, "/kick [playerid] [reason]"); else if(pID == INVALID_PLAYER_ID) return SendError(playerid, "Invalid playerid."); else if(pID == playerid) return SendError(playerid, "You cant kick yourself."); //KICK HIM SLEP :D else if(GetPVarInt(pID, "VIP") > 1) return SendError(playerid, "You cannot use this command on admins"); else { format(string, sizeof(string), "%s has been kicked by %s. (REASON: %s)", ReturnPlayerName(pID), ReturnPlayerName(playerid), reason); SendClientMessageToAll(COLOR_YELLOW, string); Kick(pID); } return 1; } //////////////////////////////////////////////////////////////////////////////////