Signature
native user_slap(index, power, rnddir = 1);
Description
Slaps the client with specified power. Killing the client if applicable.
Notes
-
This removes "power" amount of health from the client, performing
a kill if they have no health left after the slap.
-
The function will apply a velocity to the client that is independent
of the slap power. The slap direction can be influenced by the third
parameter.
Parameters
- index — Client index
- power — Power of the slap
-
rnddir
—
If set to zero the player will be slapped along it's aim
vector, otherwise the direction will be randomized
Returns
1 if user is alive and slap succeeded, 0 otherwise