View Single Post
  #18  
Old 08-03-2009, 12:11 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Okay then, No.

But the script isn't that long or complicated, is this what you're trying to accomplish?

PHP Code:
//#CLIENTSIDE

function onCreated() {
  
// Player Attr Position to store Dimension in
  
this.attrpos 30;
  
// Initialize Dimension
  
setDim(0);
  
// Begin Looping
  
setTimer(0.05);
}

// Test Command for Changing Dimensions
// /dim dimension

function onPlayerChats() {
  if (
player.chat.starts("/dim")) {
    
setDim(player.chat.substring("/dim ".length()));
  }
}

// Dimension Accessor / Mutator

public function setDim(newdim) {
  
this.dim newdim;
  
player.attr[this.attrpos] = newdim;
}

public function 
getDim() return this.dim;

// Loop to find and hide players in other dimensions..

function onTimeout() {
  for (
temp.pplayers) {
    
// Ignore yourself
    
if (temp.== player) continue;
    
// Determine Dimension
    
temp.dimz temp.p.attr[this.attrpos];
    
// Check Dimension
    
if (dimz != getDim()) {
      if (
temp.p.!= -3) {
        
// Record Old Position
        
this.("pos_" temp.p.account) = {temp.p.xtemp.p.y};
      }
      
// Hide Player
      
temp.p.temp.p.= -3;
    } else {
      
// Player Offscreen?
      
if (temp.p.== -3) {
        
// Restore them on the screen
        
temp.oldpos this.("pos_" temp.p.account);
        
temp.p.temp.oldpos[0];
        
temp.p.temp.oldpos[1];
      }
    }
  }
  
setTimer(0.05);

It's actually pretty cool, might even use it to hide from players while on Zodiac lol.

The only issue is that sometimes player's don't reappear in gmap environments because they are in a different level or something.
__________________
Quote:

Last edited by fowlplay4; 08-03-2009 at 12:22 AM..
Reply With Quote