How to Add Admin Level's To The Admin System
#1

Hello Guys
I have Created a simple Admin System Using ZCMD And It has Some Commands now i want to Know how can i Add Admin Level's To It
I have no Idea About it
Reply
#2

Adding levels isn't problem, you may define some levels for example:
pawn Код:
#define ADMIN_START 1
#define ADMIN_ADVANCE 2
#define ADMIN_EXPERT 3
And after that if you make a CMD for example: /sethp and you want this CMD will be for admins level Adance or higher you can make a simple if statement which checks his level.

pawn Код:
if(PlayerInfo[playerid][pAdmin] < ADMIN_ADVANCE) return SendClientMessage(playerid, COLOR, "You are not authorized.");
Reply
#3

Thnk You So Much +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)