Yes, it loops through the staff= part of serveroptions, so you could easily modify the script so that it sets the staff position aswell.
Script:
PHP Code:
function onActionServerSide()
{
// Automaticly scans the serveroptions for staffs and add them
// to serverr.staff.
if (params[0] == "updatestaffs") {
for (i: params[1]) {
if (i.starts("staff=")) temp.staff = i;
}
serverr.staff = NULL;
for (i: temp.staff.tokenize()) {
if (!i.starts("staff=") && !i.starts("(") && !i.ends(")")) serverr.staff.add(i);
}
}
}
//#CLIENTSIDE
function onCreated() requestText("options", "");
function onReceiveText(texttype, textoption, textlines) {
if (texttype == "options") triggeraction(0, 0, "serverside", name, "updatestaffs", textlines.tokenize(), servername);
}