cbk is right but if you really want to use this script despite the security risk this is what you would do:
add the text file he provided as a weapon to your server, and add the weapon to everyone who you want to have it.
this.rights.xXziroXx = { "Close", "FAQ", "Ticket" };
change xXziroXx to your account.(Graal# if you have one, not community name)
this.rights.xXziroXx = { "Close", "FAQ", "Ticket" };
then make the rights for each player based on what you want them to have. The rights are in an array, so you can remove and add some with commas, and don't forget the ""s as they are critical.
If you have a staff tag system, you can give rights by staff guild. for example:
makevar("this.guildrights.Player Relations") = { "Close", "FAQ", "Ticket" };
you can change the "this.guildrights.Player Relations" to "this.guildrights.Graal Police" or whatever your staff guild is. then change the array after the = sign and add or remove rights he provided.
now for tab rights. the // means it is a comment and not part of the system.
PHP Code:
//#CLIENTSIDE
function onCreated()
{
this.rights = new TStaticVar(); // don't touch
this.guildrights = new TStaticVar(); //din't touch
this.rights.xXziroXx = { //change xXziroXx to your account.
"tab:Admin", // Tabs
"Edit", "Close", "FAQ", "Ticket", // Actions
"dep:All" // Departments
};
makevar("this.guildrights.Public Relations") = {
//change the line above to your staffguild
"tab:Admin", // Tabs
"Edit", "Close", "FAQ", "Ticket", //guild Actions
"dep:Accounts", "dep:Jail" // guild Departments
};
}