Quote:
Originally Posted by Fysez
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");'.