what if i wanted to add a light image when the weapon is fired on the player?
this is most likely horribly wrong bt ill give it a shot
PHP Code:
// Recieve the triggeraction, with cmd being the first parameter passed
function onActionServerside(cmd) {
if (cmd == "heal") {
player.hearts = player.fullhearts;
}
}
//#CLIENTSIDE
function onWeaponFired() {
if(clientr.spellevel >= 10) {
//i know this is wrong just exampling
//might be setimg not sure
showimg light1.png player.x,player.y;
triggerserver("gui",name,"heal");
setani("lift",NULL);
}
}