user_slap
- Синтаксис
-
native user_slap(index, power, rnddir = 1);
Переменная | Описание |
---|---|
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 |
- Описание
- Slaps the client with specified power. Killing the client if applicable.
- Пометка
-
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.
- Возвращает
- 1 if user is alive and slap succeeded, 0 otherwise