View Single Post
  #7  
Old 06-22-2008, 05:43 AM
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
Quote:
Originally Posted by DustyPorViva View Post
That script would only work if there was a one chest limit per level. It needs to have coordinates as well.


PHP Code:
function onPlayerTouchsMe()
{
  if ( 
clientr.chestsOpened.index( @ this.level.name "_" this."_" this.) == -)
  {
    
clientr.chestsOpened.addthis.level.name "_" this."_" this.);
    
// Stuff to do e.g. add a weapon
  
}

__________________
Reply With Quote