How to make this work for RCON admins
#4

Quote:
Originally Posted by Carlton
You should use the || which means or, so the old code you have put in was:

Код:
else if (AccountInfo[id][AdminLevel] > 5) SendClientMessage(playerid, COLOR_RED, "Error ~ You cannot kick the highest level admin");
It should be changed to ( Also even though you said don't say anything about your code, I have to for the protection ):
Код:
else if (AccountInfo[id][AdminLevel] > 5 || IsPlayerAdmin(id)) SendClientMessage(playerid, COLOR_RED, "Error ~ You cannot kick the highest level admin");
About the paranethises words I've said, in math and so as PAWN the structures are still the same.


> - Left is greater than right
< - Left is less than right


So re-read your statement: If(ThePlayer'sAdminLevel is greater than 5). That will mean if the player is higher than the lead admin can't kick them. So that will lead other admins to kick the high level admin, change > to <

Ok thanks
Reply


Messages In This Thread
How to make this work for RCON admins - by Torran - 10.03.2010, 21:09
Re: How to make this work for RCON admins - by laser50 - 10.03.2010, 21:14
Re: How to make this work for RCON admins - by Carlton - 10.03.2010, 21:15
Re: How to make this work for RCON admins - by Torran - 10.03.2010, 21:17
Re: How to make this work for RCON admins - by Scenario - 10.03.2010, 22:30

Forum Jump:


Users browsing this thread: 2 Guest(s)