I did this code it removes all dodgeball snowball zombiebomb with a 5 seconds task
so sometimes when you throw it dispear exactly when you throw it
how can i do so each dodgeball/snowball/zombiebomb dispear 5 seconds after you throw it
Code:
public remove()
{
new ent = - 1, model[32]
while((ent = engfunc(EngFunc_FindEntityByString, ent, "classname", "grenade")))
{
pev(ent, pev_model, model, 32)
if (equal(model, "models/SWE-KUNG/w_dodgeball.mdl") || equal(model, "models/SWE-KUNG/w_snowball.mdl") || equal(model, "models/SWE-KUNG/w_zombiebomb.mdl"))
{
engfunc(EngFunc_RemoveEntity, ent)
}
}
}
__________________