PHP Code:
#include <amxmodx>
#include <engine>
new g_iEnt;
new g_fEntOrigin[ 3 ] = { ......... }
public plugin_init()
{
register_plugin( "", "", "" );
register_event( "DeathMsg", "EventDeathMsg", "a" );
g_iEnt = create_entity( "info_target" );
entity_set_model( iEnt, .....
entity_set_int( iEnt, EV_INT_solid, SOLID_BBOX );
entity_set_size( iEnt, .....
entity_set_vector( iEnt, EV_VEC_origin, ....
// More stuff....
}
public EventDeathMsg()
{
new iVictim = read_data( 2 );
// Respawn victim
// Maybe add an offset to the Z axis of the entity origin to make the player spawn on it
// g_fEntOrigin[ 2 ] += something
entity_set_origin( iVictim, g_fEntOrigin );
}