PHP Code:
function onPlayerTouchsMe(){
if (player.guild in serveroptions.staff) {
setlevel2("futustia-bar.nw", 10.5, 44.5);
player.dir = 2;
}
else {
player.chat = "I need an admin tag!";
}
}
Here's my ifelse so far. What did I do wrong? I was wearing my owner tag specified in the server options.
|
Should be
PHP Code:
function onPlayerTouchsMe(){
if (player.guild in serveroptions.staffguilds) {
setlevel2("futustia-bar.nw", 10.5, 44.5);
player.dir = 2;
}
else {
player.chat = "I need an admin tag!";
}
}
PHP Code:
serveroptions.staff
is a string that all of the server staff are stored in.
PHP Code:
serveroptions.staffguilds
is a string that all of the server staff
guilds are stored in.