Thread: RC: Chests
View Single Post
  #1  
Old 05-26-2007, 01:46 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
PHP Code:
function onCreated()
{
  
this.wep "Weapons/Total Ownage";
}
function 
onPlayerTouchsMe()
{
  if ( 
getVar() == NULL )
  {
    
addWeaponthis.wep );
    
clientr.( @ "chest_" this.level.name "_" @  this.level."_" this.level.y) = this.wep
  }
}
function 
getVar()
{
  return 
clientr.( @ "chest_" this.level.name "_" @  this.level."_" this.level.y);
}
//#CLIENTSIDE
function onCreated()
{
  
show();
  
onTimeOut();
}
function 
onTimeOut()
{
  if ( 
getVar() != NULL )
  {
    
hide();
  }
  
setTimer);
}
function 
getVar()
{
  return 
clientr.( @ "chest_" this.level.name "_" @  this.level."_" this.level.y);

[EDIT]I didn't even realize there was a second page to this thread ... Hehe, sorry.[/EDIT]
__________________
Reply With Quote