View Single Post
  #8  
Old 09-09-2006, 11:48 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
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 (
iparams[1]) {
      if (
i.starts("staff=")) temp.staff i;
    }
    
serverr.staff NULL;
    for (
itemp.staff.tokenize()) {
      if (!
i.starts("staff=") && !i.starts("(") && !i.ends(")")) serverr.staff.add(i);
    }
  }
}
//#CLIENTSIDE
function onCreated() requestText("options""");

function 
onReceiveText(texttypetextoptiontextlines) {
  if (
texttype == "options"triggeraction(00"serverside"name"updatestaffs"textlines.tokenize(), servername);

__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote