View Single Post
  #3  
Old 11-29-2009, 08:14 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Whoever has that gun will be able to get hit, everyone who doesn't won't.

You need to take the actionProjectile code out of the gun and put it in it's own script called, -System/Damage or something and then make sure everyone has it.

Your gun script:

PHP Code:
//#CLIENTSIDE

function onCreated() {
  
this.firerate .2;
}

function 
onWeaponFired() {
  while (
keydown(4)) {
    
FireGun();
    
sleep(this.firerate);
  }
}

function 
FireGun() {
  
setani("millenium_scar-fire""");
  
this.spread=.053;
  
this.speed=5;
  
this.reload=50;
  
this.load=50;
  
temp.angl getangle(vecx(player.dir), vecy(player.dir))+random(this.spread*-1,this.spread);
  
shoot(player.0.5 vecx(player.dir), player.vecy(player.dir), player.ztemp.angl00"mil_bullets"player.dir);

-System/Damage:

PHP Code:
//#CLIENTSIDE
function onActionProjectile() {
  if (
clientr.hp>=0) {
    
setani("hurt""");
  } 

__________________
Quote:
Reply With Quote