PHP Code:
public function(id)
new Float:velocity[3];
entity_get_vector(id, EV_VEC_velocity, velocity);
velocity[0] = -velocity[0] * 2.0
velocity[1] = -velocity[1] * 2.0
velocity[2] = -velocity[2] * 2.0
entity_set_vector(id, EV_VEC_velocity, velocity);
When the player stay motionless his velocity is 0.0, how can i push him backward. My goal is when the function is called to push away all players in the range.