onWeaponFired() and play() are both clientside functions.
PHP Code:
function onActionServerSide(cmd) {
if (cmd == "dropFireBomb") {
player.bombs --;
// you can add back your long list here if you want
temp.npc = putnpc2(player.x + 1.5 + vecx(player.dir) * 2, player.y + 2 + vecy(player.dir) * 2, "");
npc.join("firebomb");
}
}
//#CLIENTSIDE
function onWeaponFired() {
if (player.bombs <= 0) {
return;
}
triggerserver("gui", name, "dropFireBomb");
play("put.wav");
freezeplayer(1);
}