How to Add Admin Level's To The Admin System - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to Add Admin Level's To The Admin System (
/showthread.php?tid=435509)
How to Add Admin Level's To The Admin System -
BlazingKnife - 07.05.2013
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
Re: How to Add Admin Level's To The Admin System -
PaulDinam - 07.05.2013
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.");
Re: How to Add Admin Level's To The Admin System -
BlazingKnife - 07.05.2013
Thnk You So Much +rep