There's TServerPlayer.isAdmin and TServerPlayer.isStaff but I'm not sure if either work right—I've had issues with them in the past.
This will always work:
PHP Code:
function isStaff(account) {
return serveroptions.staff.tokenize(",").index(@ account) > (- 1);
}
You might want to put something like that in a player class for convenience (using this.account instead of account, obviously).