Thread: [Solved] mouse movement
View Single Post
MrPickles
Senior Member
Join Date: Aug 2022
Location: Colombia
Old 11-28-2022 , 15:14   Re: mouse movement
Reply With Quote #4

Quote:
Originally Posted by xwantcock View Post
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" );
MrPickles is offline