Um, its not working... when i try to throw a nade... SVC_BAD
PHP Code:
public fw_NadeThink(iEntity)
{
if (!pev_valid(iEntity))
{
return FMRES_IGNORED
}
new szModel[25]
pev(iEntity, pev_model, szModel, 24)
if (equali(szModel, "models/w_hegrenade.mdl"))
{
new Float:fDmgTime
pev(iEntity, pev_dmgtime, fDmgTime)
if (fDmgTime <= get_gametime() && fDmgTime != 0.0)
{
client_print( 0, print_chat, "HI" )
//func_nade_explode(iEntity)
return FMRES_SUPERCEDE
}
}
return FMRES_IGNORED
}
__________________