Found more efficient way today, thanks to
Forgetest
PHP Code:
int grenade = GetPlayerWeaponSlot(client, 2);
int iPrimaryAmmoType = GetEntProp(grenade, Prop_Send, "m_iPrimaryAmmoType");
int iAmmo = GetEntData(client, FindSendPropInfo("CCSPlayer", "m_iAmmo") + iPrimaryAmmoType*4);
PrintToChatAll("m_iAmmo %d", iAmmo);
if(iAmmo == 0)
{
PrintToChatAll("%d has been thrown", grenade);
}
__________________