Thank you. Problem is fixed now.

But now another Problem:

I want to make bullet holes where I shoot ==> And it works,
but I can not remove they. The bullet holes should go away after some time.

This is a Piece of my code:

Code:
action actBullet(){
  	
wait(-1);
ptr_remove(entBulletHole);
  	
}
  
function MpfiveShoot(){
     
while(mouse_left){                                                                                           
ent_playsound(player,sndShoot2,50);
c_trace(vector(camera.x,camera.y,camera.z),vecTarget,IGNORE_ME|USE_BOX|ACTIVATE_SHOOT|IGNORE_PASSABLE);
if(!you) 
ent_create("bullet_hole.tga",target.x,actBullet);                                                                                                                                                      wait(-0.1);
} 
}


Last edited by Saschaw04; 04/23/15 14:53.

-- started with programming on march 2015 --
-- living in Germany near Dortmund --