You need to have the shape of the npc set on serverside if you want it to be able to receive actions. Also you should be triggering the action on this.x and this.y not 0 and 0.
Though after looking at the script a second time I noticed its a weapon script, since you're using onWeaponFired(), in that case you need to do something different.
This script is for doing it in a weapon.
PHP Code:
function onActionServerSide() {
if (params[0] == "gotsplaced") {
//stuff
}
}
//#CLIENTSIDE
function onWeaonFired() {
triggerserver("weapon", this.name, "gotsplaced");
}
This is for an NPC.
PHP Code:
function onCreated() {
setshape(1, 32, 32);
}
function onActionGotsPlaced() {
// do stuff
}
//#CLIENTSIDE
function onCreated() {
setshape(1, 32, 32);
}
function onWhateverEventYouNeed() {
triggeraction(this.x, this.y, "GotsPlaced", your, parameters, here);
}