You could add weapons using a variable to store the values of the weapon names and add them to the player on login. Using a variable is much more efficient if you want to add multiple weapons on login. Here is quick example.
PHP Code:
function onActionPlayerOnline() {
temp.weps =
{
"-Weapon1",
"-Weapon2",
"-Weapon3",
"-Weapon4",
};
for(temp.wep: temp.weps)
{
player.addweapon(temp.wep);
}
}