View Single Post
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-12-2018 , 07:12   Re: [L4D2] How to change chainsaw fuel max capacity?
Reply With Quote #11

No, you not use txt files.

@Dragokas mean this plugin to dump cvars and cmds https://forums.alliedmods.net/showpo...47&postcount=4


You can set chainsaw max capacity with that hidden cvar ammo_chainsaw_max

And with plugin you can change ammo
PHP Code:
#include <sdktools>

public void OnPluginStart()
{
    
RegConsoleCmd("sm_test"test);
}

public 
Action test(int clientint args)
{
    
int weapon GetEntPropEnt(clientProp_Send"m_hActiveWeapon"); // player holding weapon
    
SetEntProp(weaponProp_Send"m_iClip1"444);

    return 
Plugin_Handled;

__________________
Do not Private Message @me

Last edited by Bacardi; 12-12-2018 at 07:13.
Bacardi is offline