View Single Post
  #2  
Old 05-12-2012, 01:06 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by Fysez View Post
How can I remove player weapons on login?
This is what I have, and it doesn't work:

PHP Code:
 function onActionServerSide() {
    
findPlayer.removeWeapon("bow");

The login function is:

PHP Code:
function onActionPlayerOnline(){


within the Control-NPC.

'findplayer("account")' is a function which takes the specified account string parameter and returns the player object if it exists, it is not necessary within onActionPlayerOnline however as there is already the 'player' object to use.

I would also imagine the parameter for removeweapon is case sensitive, which probably means you should have 'removeweapon("Bow");'.
Reply With Quote