Raised This Month: $ Target: $400
 0% 

How to Block 100% weapon reload


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 12-21-2011 , 07:11   How to Block 100% weapon reload
Reply With Quote #1

I have this code:
PHP Code:
#include <hamsandwich>
#include <fakemeta>

new bool:block_reload[33]

public 
plugin_init()
{
     
RegisterHam(Ham_Weapon_Reload"weapon_m249""fw_weapon_reload")
}

public 
fw_weapon_reload(ent)
{
     static 
id
     id 
pev(entpev_owner)

     if(
block_reload[id])
           return 
HAM_SUPERCEDE

     
return HAM_HANDLED

This code only block manual reload by press (R) button. It didn't block auto reload... When the ammo turn to 0, the weapon auto reload. How to block it
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
 


Thread Tools
Display Modes

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 11:51.


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