Well, there's something weird about it..
lets see
PHP Code:
function onActionPlayerOnline() {
temp.weps = player.weapons;
temp.i = 0;
for(temp.wep : weps) {
echo(++ i SPC wep.name);
}
}
(In this case it echoed 28 weapons)
This echoes all the player's weapons on login. However.. If I try to remove all weapons on login, something weird happens..
PHP Code:
function onActionPlayerOnline() {
temp.weps = player.weapons;
temp.i = 0;
for(temp.wep : weps) {
removeweapon(wep.name);
echo(++ i SPC wep.name);
}
}
It only echoes 14 weapons and removes those that were echoed..
So to get all weapons removed you have to reconnect like.. >5 times o.o;;
Why is this? Anyone knows?