Hello. Im trying to block the flashlight for terrorists but my code does not seem to work....as i hoped it would. The Flashlight is not working for both terrorists and counter terrorists....and something is definetly wrong..that i can not figure out. Also the client_print will not show anything.....the function is not working properly and mp_flashlight is 1.
Code:
register_impulse(100, "cl_cmd")
register_forward(FM_Cmdstart, "cl_cmd")
public cl_cmd(id, handle, seed)
{
new impulse = get_uc(handle, UC_Impulse)
if(cs_get_user_team(id) == CS_TEAM_T) && (impulse == 100)
{
client_print(id, print_chat, "[Vampire Mod] Vampires Can Not Use Flashlights.")
set_uc(handle, UC_Impulse, 0)
}
return FMRES_HANDLED
}