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 client, int args)
{
int weapon = GetEntPropEnt(client, Prop_Send, "m_hActiveWeapon"); // player holding weapon
SetEntProp(weapon, Prop_Send, "m_iClip1", 444);
return Plugin_Handled;
}
__________________