Quote:
Originally Posted by xwantcock
I FIXED GUYS
Code:
public plugin_init()
{
register_forward(FM_PlayerPostThink, "fw_PlayerPostThink", 1);
}
public fw_PlayerPostThink(id)
{
if (!is_user_alive(character[id]))
return
if (g_unable2move[character[id]])
{
new Float:VecAngles2[3];
entity_get_vector(character2[id],EV_VEC_angles,VecAngles2)
entity_set_vector(character[id],EV_VEC_angles,VecAngles2);
}
}
|
its more efficient to use client_cmd( id, "+strafe" ); and to return normal client_cmd( id, "-strafe" );