Posts: 845
Threads: 123
Joined: Dec 2011
Reputation:
0
Hello, I was wondering how I would make admin levels, I forgot how you start like
stock AdminLevel
{
// dunno what to put here
}
I honestly can't remember, thanks!
Posts: 368
Threads: 24
Joined: Feb 2012
Just make a variable:
pawn Код:
new AdminLevel[MAX_PLAYERS];
AdminLevel[playerid] = 1; // Lvl 1 admin.
Posts: 845
Threads: 123
Joined: Dec 2011
Reputation:
0
No I mean like
stock AdminLevel
{
case 1: "Trial Administrator"...
}
Posts: 815
Threads: 65
Joined: May 2010
Is the stock to make the player a desired admin level or simply state the name?
Quote:
Originally Posted by Cjgogo
You must have player info lol
|
No you don't..
Posts: 815
Threads: 65
Joined: May 2010
pawn Код:
new AdminLevel[MAX_PLAYERS];
stock SetAdminLevel(playerid, level)
{
AdminLevel[playerid] = level;
return 1;
}
Like this?
Posts: 845
Threads: 123
Joined: Dec 2011
Reputation:
0
Basically what I want is when I'm making an admin command it would be like: say if there level one admin which would be Server Moderator: %s %s has just kicked %s!
Server Moderator *NAME* has just kicked *NAME*!
If you know what I mean!
So I need the stock for the admin levels!