View Single Post
  #13  
Old 07-28-2012, 12:04 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
Quote:
Originally Posted by Astram View Post
Sorry for asking, but I don't really understand your main script too much. If you could explain how I could use this in removing a players weapon I'd be glad. Basically I just don't know where to put this chunk of script :P.
After the player object is found/loaded:

PHP Code:
function onCreated() { 
  
// Load Player
  
temp.acct "fowlplay4";
  
temp.pl findplayer(acct); 
  
temp.offline temp.pl == NULL
  
temp.pl temp.offline ? new TServerPlayer(@acct) : temp.pl
  
// Manipulate player object... 
  
temp.pl.removeweapon("Weapon Name");
  
// Save and destroy 
  
if (temp.offline) { 
    
temp.pl.saveaccount(); 
    
temp.pl.destroy(); 
  } 

__________________
Quote:
Reply With Quote