Raised This Month: $ Target: $400
 0% 

Blocking weapon fire, cvar


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
J4CK
Member
Join Date: Dec 2008
Location: India
Old 08-02-2011 , 08:59   Re: Blocking weapon fire, cvar
Reply With Quote #3

thanks!
yeah, but it's works only if u change current weapon (if you do not change weapons you can still attack)

PHP Code:
public Weapons_Deploy(iWeapon

    if( 
get_cvar_num("amx_nodamage") == )
    {
    new 
id get_pdata_cbase(iWeaponm_pPlayerXO_WEAPONS
    new 
iId get_pdata_int(iWeaponm_iIdXO_WEAPONS
    
set_pdata_float(iWeaponm_flNextPrimaryAttack99999.0XO_WEAPONS
    
set_pdata_float(iWeaponm_flNextSecondaryAttack99999.0XO_WEAPONS
    
set_pdata_float(idm_flNextAttack99999.0XO_PLAYER)
    }

it's possible make, when amx_damage 1 (blocks attacks for all players) like this:
PHP Code:
set_pev(idpev_button, (pev(idpev_button) & ~IN_ATTACK) & ~IN_ATTACK2
J4CK 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 03:27.


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