View Single Post
  #2  
Old 05-18-2008, 10:16 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
You could use custom if you wanted.

For the question about dropping items, do something like this:

PHP Code:
function onActionServerside( cmd, dx, dy, wep )
{
  switch ( 
cmd )
  {
    case 
"dropWep":
    {
      
temp.i = putnpc2( dx, dy, "" );
      
temp.i.join( "object_droppeditem" );
      
temp.i.wep = wep;
    }
  }
} 
and then have a class object_droppeditem
PHP Code:
function onPlayerTouchsMe()
{
  
player.addWeapon( this.wep );
  
destroy();
} 
__________________
Reply With Quote