List of functions in fun.inc

Function Description
get_client_listen
Returns 1 if receiver hears sender via voice communication.
set_client_listen
Sets who can listen who. Function returns 0
if for some reasons this setting can't be done.
set_user_godmode
Sets player godmode. If you want to disable godmode set only first parameter.
get_user_godmode
Returns 1 if godmode is set.
set_user_armor
Sets player armor.
set_user_health
Sets player health.
set_user_origin
Move player to origin.
set_user_rendering
Sets player rendering mode.
give_item
Gives item to player, name of item can start
with weapon_, ammo_ and item_. This event
is announced with proper message to all players.
set_user_hitzones
Sets hit zones for player.
Parts of body are as bits:
1   - generic
2   - head
4   - chest
8   - stomach
16  - left arm
32  - right arm
64  - left leg
128 - right leg
get_user_hitzones
Get user hitzones.
set_user_maxspeed
Sets users max. speed.
get_user_maxspeed
Returns users max. speed.
set_user_gravity
Sets users gravity.
get_user_gravity
Returns users gravity.
spawn
Spawns entity.
set_user_noclip
Sets player noclip. If you want to disable noclip set only first parameter.
get_user_noclip
Returns 1 if noclip is set.
get_user_footsteps
Returns 1 if player has silent footsteps, 0 if footsteps are set to normal
set_user_footsteps
Gives player silent footsteps.
if set = 0 it will return footsteps to normal
strip_user_weapons
Strips all weapons from user.
set_user_frags
Sets player frags.