Raised This Month: $ Target: $400
 0% 

Block pickup for everything except C4


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 01-08-2009 , 12:36   Re: Is it better to register new event instead?
Reply With Quote #6

Quote:
Originally Posted by xPaw View Post
maybe it will called many times, but not each frame on client like prethink doing
Called many times? I'm not talking about CALLING. I'm saying that you can use your WEAPON if you press that weapon's slot many times...

EDIT: Looks like I made it to work propertly. Code I'm using right now:
Code:
public eCurWeapon(iCl) {         if (!is_user_alive(iCl))                 return;           static iWeapon;         iWeapon = read_data(2);           if (iWeapon != CSW_KNIFE && iWeapon != CSW_C4)                 engclient_cmd(iCl, "weapon_knife");           fm_set_user_maxspeed(iCl, get_pcvar_float(g_pKnifePowerSpeed)); }
__________________

Last edited by hleV; 01-08-2009 at 13:00.
hleV 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 09:13.


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