Posts: 261
Threads: 40
Joined: Jul 2015
Reputation:
0
How can i made a script who kill player (even he have max health) with a single shot - sniper ?
Posts: 507
Threads: 29
Joined: Jul 2014
Reputation:
0
You can use OnPlayerTakeDamage to detect when a player loses life or OnPlayerWeaponShot (better) and use the parameters hittype and hitid to get the ID of the player who was shot.
To kill the player, use SetPlayerHealth with the value 0.0.