Raised This Month: $ Target: $400
 0% 

Dissable shooting when in duck


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 05-15-2015 , 10:14   Re: Dissable shooting when in duck
Reply With Quote #5

Code:
#define m_flNextAttack  83 // CBasePlayer, Linux +5 public plugin_init() {     // ...     register_forward(FM_CmdStart, "fwd_CmdStart");     // ... } public fwd_CmdStart(id, uc_handle, seed) {         // Add class check here.         if ( ! is_user_alive(id) )         return FMRES_IGNORED;         if ( ! ( get_uc(uc_handle, UC_Buttons) & IN_DUCK ) )         return FMRES_IGNORED;         if ( get_user_weapon(id) == CSW_KNIFE ) // Perhaps?         return FMRES_IGNORED;         set_pdata_float(id, m_flNextAttack, 0.1, 5);         return FMRES_HANDLED; }
__________________
Black Rose 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 18:40.


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