Raised This Month: $ Target: $400
 0% 

Detect Reloading Weapons


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mlk27
Veteran Member
Join Date: May 2008
Old 01-28-2009 , 07:49   Detect Reloading Weapons
Reply With Quote #1

how do we detect when weapon is actually being reloaded? this code kinda fail cause it checks for reload button press..weapons won't be reloaded when ammo is full..


Code:
public FwdPlayerPreThink(id) {     if(is_user_alive(id)     {         new button = pev(id, pev_button), old_button = pev(id, pev_oldbuttons)         if((button & IN_RELOAD) && !(old_button & IN_RELOAD))         {             // ....         }     } }
Mlk27 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 01:50.


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