I want to block the movement of the mouse for a while.
Is there any way without ?
Code:
#include <amxmodx>
#include <fakemeta>
new bool:g_bla[33], g_v_angle[33][3]
public plugin_init()
{
register_clcmd("say y", "functions")
register_forward(FM_PlayerPreThink, "player_think", 1)
}
public functions(id)
{
if(g_bla[id]) g_bla[id] = false
else
{
pev(id, pev_v_angle, g_v_angle[id])
g_bla[id] = true
}
}
public player_think(id)
{
if(!is_user_alive(id)) return
if(!g_bla[id]) return
set_pev(id, pev_v_angle, g_v_angle[id])
set_pev(id, pev_fixangle, 1)
}