Another thing I couldn't figure out. I am trying to use GiveAmmo directly from the game without the need of using HAM.
PHP Code:
{
"name" : "giveAmmo",
"class" : "CBasePlayer",
"library" : "mod",
"arguments" :
[
{
"type" : "int",
"info" : "ammo"
},
{
"type" : "char *",
"info" : "Ammo Name"
},
{
"type" : "int",
"info" : "ammomax"
}
],
"indexes":
[
{
"os" : "windows",
"mod" : "cstrike",
"value" : 15
},
{
"os" : "linux",
"mod" : "cstrike",
"value" : 16
}
]
}
This is the giveAmmo File. The Call works but I don't get any ammo. What do I have to pass as second parameter in order to get for example "556nato" - Ammo?
EDIT: Didn't count right. Will let you know if that was the problem.
EDIT: Yep, Works

.