Ok, first of all it's not #//CLIENTSIDE, it's //#CLIENTSIDE.
Second of all you need to trigger the weapon itself to run a script in it serverside.
Example:
NPC Code:
if (actionserverside) {
//stuff here
}
//#CLIENTSIDE
if (weaponfired) {
triggeraction 0,0,serverside,WEAPONNAME,params;
}
To access any params sent from a triggeraction, use #p(0-#)
They are strings, so you convert them to integers for use in X and Y placements, use strtofloat(#p(#0));
Then again I haven't scripted in awhile but I think that's everything you need to know.
[Edit]Edited because I think I was under the influence of fatigue while typing.