Quote:
Originally Posted by ConnorMcLeod
Try this :
PHP Code:
const m_pActiveItem = 373 public plugin_init() { RegisterHam(Ham_Killed, "player", "Ham_CBasePlayer_Killed_Post", 1) } public Ham_CBasePlayer_Killed_Post(id, iKiller) { set_pev(id, pev_effects, pev(id, pev_effects) | EF_NODRAW) if( is_user_alive( iKiller ) ) { new iActiveItem = get_pdata_cbase(iKiller, m_pActiveItem) if( iActiveItem > 0 ) { engfunc(EngFunc_SetView, id, iActiveItem) } } }
|
PHP Code:
public Event_DeathMsg( )
{
engfunc( EngFunc_SetOrigin, id, Float:{ -4800.0,-4800.0,-4800.0 } )
}
The view still stuck with the body, not with the attacker.
__________________