PHP Code:
g_playerenth[id] = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "env_sprite"));
if(pev_valid(ent))
return
engfunc(EngFunc_SetModel, g_playerenth[id], "sprites/zombihealer.spr");
set_pev(g_playerenth[id], pev_aiment, id);
set_pev(g_playerenth[id], pev_movetype, MOVETYPE_FOLLOW);
set_pev(g_playerenth[id], pev_owner, id);
set_pev(g_playerenth[id], pev_scale, 1.0);
set_pev(g_playerenth[id], pev_rendermode, kRenderTransAlpha);
set_pev(g_playerenth[id], pev_renderamt, 255.0);
set_pev(g_playerenth[id], pev_animtime, get_gametime())
set_pev(g_playerenth[id], pev_framerate, 1.0)
set_pev(g_playerenth[id], pev_spawnflags, SF_SPRITE_STARTON)
dllfunc(DLLFunc_Spawn, g_playerenth[id])