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), 1, 60, 60 );
while( true )
{
trig waittill( "trigger", player );
if( isPlayer( player ) && isAlive( player ) && player.sessionteam != "spectator" && player isTouching( trig ) )
{
player iprintlnbold("^2`^7Trigger^2.");
player setorigin( 1237,1110,250 );
}
}
}