setlevel
#2

Replace

pawn Код:
if(levels == 0)
with

pawn Код:
if(levels < PlayerData[ID][AdminLevel]) // Their new level is LESS THAN their CURRENT level (= demoted)
I'd also add this toward the top:

pawn Код:
if(PlayerData[ID][AdminLevel] == levels) return SendClientMessage(playerid, RED, "ERROR: Player is already that level.");
Reply


Messages In This Thread
setlevel - by MiGu3X - 11.02.2013, 23:16
Re: setlevel - by MP2 - 11.02.2013, 23:54
Respuesta: setlevel - by MiGu3X - 12.02.2013, 00:24
Re: setlevel - by MP2 - 12.02.2013, 00:33
Respuesta: setlevel - by MiGu3X - 12.02.2013, 00:34
Re: setlevel - by MP2 - 12.02.2013, 00:53
Respuesta: setlevel - by MiGu3X - 12.02.2013, 01:05
Re: setlevel - by MP2 - 12.02.2013, 01:08
Respuesta: setlevel - by MiGu3X - 12.02.2013, 01:25
Re: setlevel - by MP2 - 12.02.2013, 02:07

Forum Jump:


Users browsing this thread: 2 Guest(s)