Raised This Month: $ Target: $400

[CSGO] Change dmg with cvar

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Junior Member
Join Date: Jan 2014
Old 08-04-2022 , 06:34   [CSGO] Change dmg with cvar
Reply With Quote #1


I would like to ask some help about this.
How could I equal the static damage value to cvar variable?

PHP Code:
public Action Event_OnTakeDamage(int victimint &attackerint &inflictorfloat &damageint &damagetype

    if (!
attacker || attacker MaxClients || !IsClientInGame(attacker)) 
char sWeapon[32]; 
StrContains(sWeapon"fists"false) != -1
        if (
g_iClientFistPhase[attacker] % == 0)     damage 40.0;
damage 40.0;

Thank you for advices!

Script from https://forums.alliedmods.net/showth...25#post2730825

Actually what I'd like to do is merge these plugins and add a cvar for change fistsdmg:
Change fists dmg

Last edited by WhiteAngel4; 08-04-2022 at 10:37.
WhiteAngel4 is offline

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 09:58.

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