Raised This Month: $ Target: $400
 0% 

[REQ] help me a little bit.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
bojka
Junior Member
Join Date: Dec 2015
Old 06-27-2016 , 10:24   [REQ] help me a little bit.
Reply With Quote #1

Hi , can anyone help me adding cvar to this code i want to turn it on off sometimes this is powered by : Bugsy



PHP Code:
#include <amxmodx>
#include <hamsandwich>

#define MAX_PLAYERS 32
#define DMG_GRENADE (1<<24)
#define IsPlayer(%1) (1<=%1<=MAX_PLAYERS)

public plugin_init() 
{
    
RegisterHamHam_TakeDamage "player" "TakeDamage" );
}

public 
TakeDamageVictim Inflictor Attacker Float:fDamage DmgBits )
{
    return ( 
IsPlayerAttacker ) && !( DmgBits DMG_GRENADE ) && ( get_user_weaponAttacker ) == CSW_KNIFE ) ) ? HAM_SUPERCEDE HAM_IGNORED;


Last edited by bojka; 06-27-2016 at 10:40.
bojka 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 22:06.


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