i want to block people from using +attack (they cant fire), it is working (almost), i use this:
Code:
public client_PreThink(id){
if (entity_get_int(id, EV_INT_button) & IN_ATTACK){
entity_set_int(id, EV_INT_button,IN_USE)
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
this way the player cant fire anymore, BUT he holds the usekey (i could change to IN_CANCEL, would it be better?) and the worser effect is that the client sees that he fires (RAPID fire) but dont loose ammo and he gets bullet decals
when i remove entity_set... does the effect of use go away?
any1 know how to fix it? is there a way to send the player a info that he cant fire, like as he is reloading?
also is it possible to block the sound when fired a weapon or using something?
__________________