30.08.2011, 12:59
Thats not an enum...
Why do you even want that, just use
You just could pack in into macros
Quote:
Ok, hey.
I need a couple of usefull functions. I could probably do theese myself. But I could also epicly fail. And I have done a couple of times. My system uses: pawn Код:
pawn Код:
The lowest admin level is 1, and the highest is 5. Thanks -TechKid100 |
pawn Код:
level = PlayerInfo[playerid][AdminLevel]; // to get it
PlayerInfo[playerid][AdminLevel] = 5; // to set it
if(PlayerInfo[playerid][AdminLevel]) {} // to check
pawn Код:
#define GetPlayerAdminLevel(%0) PlayerInfo[%0][AdminLevel]
#define SetPlayerAdminLevel(%0,%1) (PlayerInfo[%0][AdminLevel]=%1)
#define IsPlayerAdmin GetPlayerAdminLevel