Thread: Shooting Glitch
View Single Post
  #8  
Old 04-09-2006, 01:14 AM
gamer4lifebitach gamer4lifebitach is offline
Scripter
gamer4lifebitach's Avatar
Join Date: Oct 2005
Location: Illionis, USA
Posts: 25
gamer4lifebitach is on a distinguished road
Send a message via AIM to gamer4lifebitach Send a message via MSN to gamer4lifebitach
it still dont work...

PHP Code:
//#CLIENTSIDE
function onCreated(){
  
setani("idle""");
  
replaceani("idle""idle");
  
replaceani("walk""walk");
  
this.inuse "0";
}
function 
onWeaponfired(){
  if (!
this.inuse==1) {
    
setani("cross_pistol-idle""");
    
replaceani("idle""cross_pistol-idle");
    
replaceani("walk""cross_pistol-walk");
    
this.inuse=1;
  }
  if (
this.inuse==1) {
    
setani("cross_pistol-fire""");
    
this.angle getangle(vecx(playerdir),vecy(playerdir));
    
this.bulletangle = -.2;
    
shoot(playerx,playerx,0,this.angle+random(this.bulletangle,abs(this.bulletangle)),0,0,cross_pistol-bullets,0);
    
freezeplayer(0.3);
    
sleep(0.7);
    
setani("cross_pistol-idle""");
  }
}
function 
onKeypressed(){
  if (
keydown2(keycode(a),false)&&this.inuse==1) {
    
replaceani("idle""idle");
    
replaceani("walk""walk");
    
this.inuse=0;
  }

__________________

~Contact Information~
Aim: Grind64RyGuy
Email: [email protected]
Client Status:
Reply With Quote