The Hamsandwich way is the most efficient.
Code:
#include <amxmodx>
#include <hamsandwich>
public plugin_init()
{
RegisterHam( Ham_Spawn, "player", "CPlayer_Spawn", 1 );
}
public CPlayer_Spawn ( const Player )
{
if ( is_user_alive( Player ) )
{
// Player spawns.
}
}
__________________