The problem has been solved. It has only occurred on certain NON-STEAM server version, so I'm not going to add fix in plugin code. The bug causes player to teleport to origin {0,0,0} when pressing jump while player is in air and his horizontal velocity is 0.
To fix it you need to find in player_PostThink function:
PHP Code:
set_pev(id, pev_velocity, velocity[id])
and replace it with:
PHP Code:
if(velocity[id][0] < 2000.0 && velocity[id][0] > -2000.0
&& velocity[id][1] < 2000.0 && velocity[id][1] > -2000.0)
set_pev(id, pev_velocity, velocity[id])
__________________