Quote:
Originally Posted by Emera
Might be a little easier to put them all in an array instead of using multiple removeweapon() functions. It doesn't really make a difference, but it looks nicer.
PHP Code:
function onCreated() { this.weapons_rem = { "-System", "-Other", "Weapons/Here" }; }
function onActionPlayerOnline() { for (weapons : this.weapons_rem) { player.removeweapon(weapons); } }
|
I don't see the need to permanently store the weapons array, and you should *REALLY* give your
weapons string a temp header.