how do we make the healthkit that we spawn to stop re-appearing after we collect it?
Code:
// .......
new Float:fOrigin[3]
pev(id, pev_origin, fOrigin)
new iEnt = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString , "item_healthkit"))
engfunc(EngFunc_SetOrigin, iEnt, fOrigin)
dllfunc(DLLFunc_Spawn, iEnt)
return PLUGIN_HANDLED