public client_PreThink(id)niech wkleji to:
{zaraz po pierwszym otwarciu
new button = get_user_button(id);
if(button & IN_USE && klasa_gracza[id] == nazwaklasy)//tu
{
static Float:origin[3];
entity_get_vector(id, EV_VEC_origin, origin);
if(get_distance_f(origin, g_wallorigin[id]) > 25.0)
return FMRES_IGNORED;
if(get_entity_flags(id) & FL_ONGROUND)
return FMRES_IGNORED;
if(button & IN_FORWARD)
{
static Float:velocity[3];
velocity_by_aim(id, 240, velocity);
entity_set_vector(id, EV_VEC_velocity, velocity);
}
else if(button & IN_BACK)
{
static Float:velocity[3];
velocity_by_aim(id, -240, velocity);
entity_set_vector(id, EV_VEC_velocity, velocity);
}
}
return FMRES_IGNORED;
}