Quote:
Originally Posted by eat1k
FakeMeta: pev(id, pev_buttons) & IN_RELOAD
I don't think Ham_Weapon_Reload will help you to do what you're trying to do. It's called only when a weapon is reloading so if you will press "R" without reloading a weapon it will not work.
|
Code:
register_forward(FM_PlayerPreThink, "fw_Player_PreThink")
Code:
public fw_Player_PreThink(id)
{
new buttons = pev(id, pev_button)
if(buttons & IN_RELOAD)
{
if(g_CanBuild)
{
cmdMoveEnt(id)
}
else
{
cmdStopEnt(id)
}
}
}
doesnt work