Posts: 262
	Threads: 73
	Joined: Jul 2009
	
Reputation: 
0
	 
 
	
	
		i wanna do that if somebody get hit from deagle he automatic do animation that i chooce..
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 574
	Threads: 87
	Joined: Aug 2009
	
Reputation: 
0
	 
 
	
	
		like he dances when buys deagle?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 1,293
	Threads: 6
	Joined: Jul 2008
	
Reputation: 
0
	 
 
	
	
		There's no way to detect if somebody got hit by a deagle (reliably), apart from when they die (you can check the killerid's weapon). But I don't think you can use animations just after a player has died.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 2,862
	Threads: 11
	Joined: Mar 2008
	
Reputation: 
0
	 
 
	
	
		You can do that with OnPlayerKeyStateChange.
Detect if player is pressing fire button when he has deagle in active weapon slot. Then make a loop of all players and choose those which are XX away from you. Find how much health one deagle bullet takes and then mix everything together.
On the end you need to get that if you press the fire button with deagle in active weapon slot and someone is less than XX meters away from you and loses YY health (one deagle bullet) that player is target of animation.