Code:
public client_PreThink(id)
{
if(incar[id] != 0)
{
new bufferstop = entity_get_int(id,EV_INT_button)
if(bufferstop != 0) {
entity_set_int(id,EV_INT_button,bufferstop & ~IN_ATTACK & ~IN_ATTACK2 & ~IN_ALT1 & ~IN_USE)
}
if((bufferstop & IN_JUMP) && (entity_get_int(id,EV_INT_flags) & ~FL_ONGROUND & ~FL_DUCKING)) {
entity_set_int(id,EV_INT_button,entity_get_int(id,EV_INT_button) & ~IN_JUMP)
}
}
if(incar[id])
{
new Float:VecVel[3],Float:VecAngles[3];
entity_get_vector(id,EV_VEC_velocity,VecVel);
entity_get_vector(id,EV_VEC_v_angle,VecAngles);
VecVel[0] = floatcos(VecAngles[1],degrees) * 800.0;
VecVel[1] = floatsin(VecAngles[1],degrees) * 800.0;
entity_set_vector(id,EV_VEC_velocity,VecVel);
}
}
And you got hit by the OLO ulgy code structure ^_^
PS. You can't do that twice public Client_Prethink and public Client_PreThink twice like that
__________________