Raised This Month: $ Target: $400
 0% 

block +attack, not only on server


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 09-02-2004 , 09:41   block +attack, not only on server
Reply With Quote #1

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?
__________________
alias White Panther
karlos is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:28.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode