View Single Post
  #2  
Old 04-08-2007, 03:54 AM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
Quote:
Originally Posted by Dionysus View Post
Is there an easier way to check whos on RC than this below???

PHP Code:
// NPC made by *Dionysus
function onActionServerside(){
  if (
params[0] == "rccheck") {
    
setstring"temp.admins"NULL);
    for(
i=0;i<allplayerscount;i++) {
      
with(allplayers[i]) {
        if (
player.level == "") {
          
addstring"this.admins"player.account);
        }
      }
    }
  }
}
//#CLIENTSIDE
function onCreated(){
  
triggeraction(0,0,"serverside",name,"rccheck");

PHP Code:
//#CLIENTSIDE
function getAdmins()
  {
  
admins = new[0];
  for (
plallplayers )
    {
    if ( 
pl.level == null )
      
admins.addpl.account );
    }

  return 
admins;
  } 
?
Reply With Quote