|
|
#1 |
|
Big Clucker
![]() ![]() Join Date: Feb 2012
Location: Netherlands
Posts: 140
Reputation: 6
|
I really want admin ranks like level 1 = Moderator level 2 = Administrator etc. I already have some commands and login/register system.
|
|
|
|
|
|
#2 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Aug 2011
Location: Westland, Michigan
Posts: 853
Reputation: 86
|
pawn Code:
Above is just a simple stock I made, yet I'm not sure if it works. I use this on my gamemode, yet it's untested as of yet. Something like this could be made: pawn Code:
Remember, this is just an example. The stock simply states that it creates a new variable, and then depending on what the admin rank is set to for the player, sets the name of their admin rank. |
|
|
|
|
|
#3 |
|
Huge Clucker
![]() ![]() ![]() Join Date: May 2012
Posts: 317
Reputation: 94
|
pawn Code:
This is more efficient than Kindred's code, but the same idea/concept. |
|
|
|
|
|
#4 |
|
Big Clucker
![]() ![]() Join Date: Feb 2012
Location: Netherlands
Posts: 140
Reputation: 6
|
Okay i will make it clear.
I have an admin system which includes: Register/Login. Saving System. (scriptfiles/users) A few commands: kick, ban, freeze and unfreeze. QEUSTION: I want if you are level 2 admin you can use that commands, and you can't use it if you are level 1 admin or lower. Now i only can use Code:
if(!IsPlayerAdmin(playerid)) Code:
if(PlayerInfo[playerid][pAdmin] < 2) |
|
|
|
|
|
#5 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Mar 2012
Posts: 1,597
Reputation: 144
|
pawn Code:
|
|
|
|
|
|
#6 | |
|
Big Clucker
![]() ![]() Join Date: Apr 2008
Posts: 144
Reputation: 422
|
Quote:
pawn Code:
Best regards, Jesse |
|
|
|
|
|
|
#7 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Mar 2012
Posts: 1,597
Reputation: 144
|
About my code, it's right. it's pretty obviously it was to be put in onplayerconnect don't think you?
pawn Code:
it was a random number.... |
|
|
|
|
|
#8 | |
|
Big Clucker
![]() ![]() Join Date: Apr 2008
Posts: 144
Reputation: 422
|
Quote:
..Best regards, Jesse |
|
|
|
|
|
|
#9 |
|
Big Clucker
![]() ![]() Join Date: Feb 2012
Location: Netherlands
Posts: 140
Reputation: 6
|
both of those scripts is giving me this error:
Code:
W:\Users\Magdy\Desktop\Server 3.0e\filterscripts\MyAdmin.pwn(93) : error 029: invalid expression, assumed zero W:\Users\Magdy\Desktop\Server 3.0e\filterscripts\MyAdmin.pwn(93) : error 091: ambiguous constant; tag override is required (symbol "AdminLevel") W:\Users\Magdy\Desktop\Server 3.0e\filterscripts\MyAdmin.pwn(93) : error 029: invalid expression, assumed zero W:\Users\Magdy\Desktop\Server 3.0e\filterscripts\MyAdmin.pwn(93) : fatal error 107: too many error messages on one line |
|
|
|
|
|
#10 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Apr 2009
Location: In a brick house, in a small town, in a country named Holland
Posts: 828
Reputation: 39
|
Mecha this might be useful or totally unusful, as your dutch aswell I can help you (in dutch) on teamviewer, but if u dont reply quick, theres a chance that I have to go (school). PM me ur TV details.
edit: got to go, if this problem still occurs tomorrow i'll help ya out. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Admin Ranks? | sanplayer | Scripting Help | 10 | 09/10/2011 05:59 PM |
| c ranks^ | Kar | Help Archive | 2 | 26/07/2010 10:10 PM |
| Ranks | ColdXX | Help Archive | 0 | 18/05/2010 05:13 PM |
| Ranks | Puzi | Help Archive | 17 | 29/07/2009 03:30 PM |