Installation:
server/cfg/sourcemod/plugins/sm_setammo.smx
Commands:
sm_setammo arg1 arg2 arg3 arg4 arg5
Usage:
Command "sm_setammo" is a server-side, therefore must be used in the server console.
1st argument - client index (1-32);
2nd argument - weapon slot, primary or secondary (0, 1);
3rd argument - clip size (integer);
4th argument - ammo (integer);
5th argument - clip size of upgrade ammo (integer).
Example of usage in "g_STLib.Funcs.Inventory()" of Speedrunner Tools addon:
Code:
hPlayer.GiveItem("smg");
hPlayer.GiveItem("pistol");
SetAmmo(hPlayer, 0, 25, 650, 25);
SetAmmo(hPlayer, 1, 5);
NOTE: Before adding number of upgrade ammo, it is necessary to have it in your weapon.
Links:
Speedrunner Tools:
http://steamcommunity.com/sharedfile.../?id=510955402