10.03.2010, 21:17
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"); Код:
else if (AccountInfo[id][AdminLevel] > 5 || IsPlayerAdmin(id)) SendClientMessage(playerid, COLOR_RED, "Error ~ You cannot kick the highest level admin"); > - 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 < |