View Single Post
XxMoNsTeRXM XxMoNsTeRXM's Avatar

JCF Member

Joined: Sep 2013

Posts: 191

XxMoNsTeRXM is doing well so far

Apr 22, 2016, 06:56 AM
XxMoNsTeRXM is offline
Reply With Quote
In the new 5.2 plus update they were added privileges, but they don't work for me and I don't know why.
Here are the admin.ini settings:
Code:
[Admin.Settings]
Enabled=True
Password=somepassword
Spammers=false

[Admin.IPs]

[Admin.AllowedCommands]
r
c
k
start
stop
bluescore
redscore
greenscore
yellowscore
gamemode
coop
battle
ctf
treasure
dom
jb

[Admin.BlockedCommands]

[Admin.Privileges]
*:admin
And here is the script with which I test it:
Code:
bool pressed;

void onPlayer(jjPLAYER@ p) {
	if (jjKey[0x5A] && !pressed) {
		jjAlert(p.hasPrivilege("admin", jjScriptModuleID) + "");
	}
	pressed = jjKey[0x5A];
}
If I am logged in the "Admin" group, and press Z, it says false (which means that I don't have the privilege), but I added the privilege in Admin.Privileges.
__________________
~XxMoNsTeR