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
