#1

How can i made a script who kill player (even he have max health) with a single shot - sniper ?
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)