Thread: Hat Weapon
View Single Post
  #1  
Old 08-12-2010, 11:09 AM
iSlayer iSlayer is offline
Snk for manager
iSlayer's Avatar
Join Date: Feb 2010
Location: Room 7, Era Hotel, Era
Posts: 202
iSlayer will become famous soon enough
Hat Weapon

Hi all, I'm trying to make a simple NPC when player fires it, it checks if the player has tht hat on, if he does it sets the hat to hat.png, if not it sets the players hat to the hat filename, someone please help me, this is what ive got so far

PHP Code:
//#CLIENTSIDE

function onWeaponFired()
{
  {
  if (
player.attr[1] = "ds-gasmask.png")
  
player.attr[1] = "hat.png"
  }
  else
  {
  
player.attr[1] = "ds-gasmask.png";
  }

Thanks!
__________________
Snk for manager




Quote:
Originally Posted by Admins View Post
Snk for manager of Era
Reply With Quote