View Single Post
  #4  
Old 07-12-2012, 12:48 AM
Fatel Fatel is offline
Worlds Connected Dev
Join Date: Jun 2012
Posts: 18
Fatel is an unknown quantity at this point
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);
  }


Last edited by Fatel; 07-12-2012 at 01:19 AM..
Reply With Quote