Promoted and Demoted
#2

You should check whether the parameter "level" is higher or lower than the admin level that the player already has.

Thus:
pawn Код:
if(PlayerInfo[targetid][AdminLevel] < level)
{
    //Promote
}
else
{
    //Demote
}
Reply


Messages In This Thread
Promoted and Demoted - by professional killer - 08.10.2014, 13:34
Re: Promoted and Demoted - by AndySedeyn - 08.10.2014, 13:36
Re: Promoted and Demoted - by professional killer - 08.10.2014, 13:38
Re: Promoted and Demoted - by AndySedeyn - 08.10.2014, 13:45
Re: Promoted and Demoted - by professional killer - 08.10.2014, 13:49

Forum Jump:


Users browsing this thread: 2 Guest(s)