Update the #defines to the new values and it works... Prop_Data vs Prop_Send wasn't the issue.
PHP Code:
#include <sourcemod>
#include <sdktools>
#pragma semicolon 1
#define HEGrenadeOffset 14 // (14 * 4)
#define FlashbangOffset 15 // (15 * 4)
#define SmokegrenadeOffset 16 // (16 * 4)
#define IncenderyGrenadesOffset 17 // (17 * 4) Also Molotovs
#define DecoyGrenadeOffset 18 // (18 * 4)
public OnPluginStart()
{
RegConsoleCmd("sm_test", test, "show # of grenades");
}
public Action:test(client, arg)
{
for (new i = 1; i <= MaxClients; i++)
{
if (IsClientInGame(i))
{
ReplyToCommand(client, "%L has the following nades: IncGrenade [%d] | HEGrenade [%d] | Smokers [%d] | Flashbangs [%d] | Decoys [%d]", i, GetEntProp(i, Prop_Send, "m_iAmmo", _, IncenderyGrenadesOffset), GetEntProp(i, Prop_Send, "m_iAmmo", _, HEGrenadeOffset), GetEntProp(i, Prop_Send, "m_iAmmo", _, SmokegrenadeOffset), GetEntProp(i, Prop_Send, "m_iAmmo", _, FlashbangOffset), GetEntProp(i, Prop_Send, "m_iAmmo", _, DecoyGrenadeOffset));
}
}
}
__________________