No, only RegisterHam with "grenade" classname, or weapon_handgrenade or whatever is this entity classname.
If it's the same as cs, as soon as you have launched the nade, classname is "grenade" (in fact the launched nade is a new entity and the nade that you were holding doesn't exist anymore).
So, something like this :
PHP Code:
RegisterHam(Ham_Touch, "grenade", "Grenade_Touch")
public Grenade_Touch( iNade , iEnt )
{
if( !pev_valid( iEnt ) )
return HAM_IGNORED
static szClassName[9]
pev(iEnt, pev_classname, szClassName, charsmax(szClassName))
if( !equal( szClassName, "nade_fix") )
return HAM_IGNORED
engfunc(Engfunc_RemoveEntity, iNade)
return HAM_SUPERCEDE
}
__________________