08.10.2014, 13:36
You should check whether the parameter "level" is higher or lower than the admin level that the player already has.
Thus:
Thus:
pawn Код:
if(PlayerInfo[targetid][AdminLevel] < level)
{
//Promote
}
else
{
//Demote
}