|
I though't I'd be easier. I can always make the Control NPC add weapons to staff when they log in.
|
That'd be your best bet. Just list them in an array and add them to the staff members as they login.
PHP Code:
for (wep : this.staff_weps) {
if (player.clientr.isStaff) player.addweapon(wep);
}
Obviously, you'll have to set up giving staff the clientr.isStaff flag so it knowns if to add weapons or not. You could always read from serveroptions.staff and check if their account is inside the list.
PHP Code:
temp.staff = serveroptions.staff.tokenize(",");
if (player.account in temp.staff || player.communityname in temp.staff) {
player.clientr.isStaff = true;
}
And I don't want to be the one to nag, but you really need to learn how to style your code. You can read into decent styling techniques in
this official forums thread by Skyld, and you can also use
FP4's GS2 beautifier. Obviously, styling code is pretty much personal preference, but it makes it easier to read if you adapt to using a clean and readable style so other coders can look through it with ease. Other than that, good job. You're making progress.