View Single Post
  #5  
Old 06-01-2006, 06:59 AM
Omini Omini is offline
Millenium Owner
Join Date: Feb 2006
Location: N.Ireland
Posts: 293
Omini is on a distinguished road
Send a message via AIM to Omini Send a message via MSN to Omini Send a message via Yahoo to Omini
Alright awesome. Thanks very much for the help.

Edit:

Ok it doesn't appear to work.

NPC Code:
function shoot()
{
freezeplayer(0.65);
setani("millenium_cx-fire","");
client.cxclip -= 1;
this.angle = getangle(vecx(player.dir),vecy(player.dir));
this.dx = player.x+vecx(player.dir)*2;
this.dy = (player.y-.5)+vecy(player.dir)*2.5;
//Setting Shoot Params
setshootparams("shoot",this.gunpow,player.account) ;
//Shooting Bullets
shoot(this.dx,this.dy,player.z,this.angle+random(t his.maxangle*-1,this.maxangle),0,0,"millenium_bullet","");
shoot(this.dx,this.dy,player.z,this.angle+random(t his.maxangle*-1,this.maxangle),0,0,"millenium_bullet","");
shoot(this.dx,this.dy,player.z,this.angle+random(t his.maxangle*-1,this.maxangle),0,0,"millenium_bullet","");
shoot(this.dx,this.dy,player.z,this.angle+random(t his.maxangle*-1,this.maxangle),0,0,"millenium_bullet","");
shoot(this.dx,this.dy,player.z,this.angle+random(t his.maxangle*-1,this.maxangle),0,0,"millenium_bullet","");
shoot(this.dx,this.dy,player.z,this.angle+random(t his.maxangle*-1,this.maxangle),0,0,"millenium_bullet","");
}



That's in the Weapon / Gun. In a system NPC (-Systems/HP)

NPC Code:
function onActionprojectile()
{
if (!isnopkzone) {
if (params[0] == "shoot") {
clientr.hp -= params[1];
if (clientr.hp <= 0) {
with (findplayer(params[2])) {
clientr.kills += 1;
}
dead();
}
}
}
}



Can anyone see any errors in either of those 2 scripts?
__________________




Last edited by Omini; 06-01-2006 at 07:43 AM..
Reply With Quote