03.08.2016, 16:56
here all function
Код:
CMD:ban(playerid, params[]) { new id, reason[50], string[128], banned[MAX_PLAYER_NAME]; if(PlayerInfo[playerid][pAdminLevel] < 2 || !IsPlayerAdmin(playerid)) return SendClientMessage(playerid,red,"You Are not Rcon admin Or admin lvl 3+"); if(sscanf(params, "uz", id, reason)) return SendClientMessage(playerid, -1, "USAGE: /ban [playerid] [reason(optional)]"); GetPlayerName(id, banned, sizeof(banned)); format(string, sizeof(string), "AdmCmd: %s has been banned by %s. reason: %s", banned, GetName(playerid), reason); SendClientMessageToAll(red, string); BanEx(id, reason); return 1; }