PHP Code:
function onActionPlayerOnline() {
if (serveroptions.staff.tokenize(",").index(player.account) > -1) {
clientr.staff = true;
}
else {
clientr.staff = false;
}
}
While that script will mark people who are staff on the server, if you want to get people who appear under staff in the playerlist then you'll need to get the serveroptions.staffguilds and compare that with the player's guild.