Hello everybody,
I try to spawn a pick-up-able smoke grenade, but I always get a auto-sniper.
What am I doing wrong?
Code:
new iEnt = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "armoury_entity"))
new Float:flOrigin[3]
flOrigin = g_flSpawnerPos[id]
flOrigin[1] += 20
set_pev(iEnt, pev_origin, flOrigin)
set_pdata_int(iEnt, 34, CSW_SMOKEGRENADE, 4)
set_pdata_int(iEnt, 35, 1, 4)
set_pev(iEnt, pev_model, "models/w_smokegrenade.mdl")
ExecuteHamB(Ham_Spawn, iEnt)
__________________