Quote:
Originally Posted by Skyld
PHP Code:
function isStaff(temp.account)
{
return temp.account in serveroptions.staff;
}
... just to save you from all that ridiculous index() nonsense.
|
I use
index because it's case-insensitive and therefore better for player input. You can use
in if you want but it would have to be
PHP Code:
function isStaff(account) {
return account in serveroptions.staff.tokenize(",");
}