You should always check that the player:

1. is alive;
2. isn't a spectator;
3. is touching the trigger.

PHP Code:
trigers_spawn()
{    
    
trig spawn"trigger_radius", (1242,2269,284), 16060 );
    
    while( 
true )
    {
        
trig waittill"trigger"player );
        
        if( 
isPlayerplayer ) && isAliveplayer ) && player.sessionteam != "spectator" && player isTouchingtrig ) )
        {
            
player iprintlnbold("^2`^7Trigger^2.");
            
player setorigin1237,1110,250 );
        }
    }