27.04.2016, 15:29
Quote:
Could you show the CMD that you used to set your admin level in the script first?
|
Код:
cmd(agive, playerid, params[]) { // If player is not admin, returns value of 0 if(GetPVarInt(playerid, "AdminLevel") == 0) return 0; // Makes sure player is admin before allowing promotion of another player if(GetPVarInt(playerid, "AdminLevel") == 1337) { new ID; new string[120]; if(sscanf(params, "u", ID)) return SendClientMessage(playerid, COLOR_ERROR, "Usage: /agive [ID]"); if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_ERROR, "Unknown ID."); if(GetPVarInt(ID, "AdminLevel") == 1337) return SendClientMessage(playerid, COLOR_ERROR, "Error: That player is already an Administrator."); IRC_Say(gGroupID, IRC_CHANNEL, string); SendClientMessage(ID, COLOR_ADMIN, "You are now a member of the staff team."); SendClientMessage(ID, COLOR_ADMIN, "Do /adcmds for a list of your commands."); SetPVarInt(ID, "AdminLevel", 1337); } return 1; }
Thanks for the reply by the way, I've been doing other things since I've been trying to get this working so I've not really played around with anything else.