View Single Post
  #7  
Old 07-07-2011, 02:25 AM
Astram Astram is offline
Era iPhone PR
Astram's Avatar
Join Date: Aug 2010
Posts: 324
Astram can only hope to improve
Send a message via AIM to Astram
You can also like add some funk to the hat adding script.
PHP Code:
//#CLIENTSIDE
function onWeaponFired()
  {
  
this.hat = "hat1.png";
  if (
clientr.lasthat != this.hat)
    {
    
player.attr[1] = this.hat;
    
clientr.lasthat = player.attr[1];
    
setAni("Equiphat",NULL);
    }
  else
    {
    
setAni("Removehat",NULL);
    
player.attr[1] = "no-hat.png";
    
clientr.lasthat = player.attr[1];
    }
  } 
In the gani make the "hat" image ATTR1
and
make this.hat in a script be the hats imagename.
If you want it as a class for easy use just ask me
__________________
-Toad
The worlds biggest Toad fan...
Era iPhone FTW!


Reply With Quote