You can do something like this in a database npc
function onActionPlayerOnline() {
addweapon("name");
}