
#include serverapi.jss


Func ReturnToRed(Player)
{
	Var ID = GetPlayerEntity(Player);
	Var Pos = GetPos(ID);
	Pos[0] = 163;
	Pos[1] = 540;
	// Set velocity to zero; if you use jetpack, you would get like infinite speed after
	// some time of jetpacking into the trigger area, making you able to fly through the
	// whole map after some time
	Pos[2] = Pos[3] = 0.0;
	SetPos(ID, Pos);

	// Give the player some penelty
	DealDmg(ID, ID, 20.0, 0);
}


Func ReturnToBlue(Player)
{
	Var ID = GetPlayerEntity(Player);
	Var Pos = GetPos(ID);
	Pos[0] = 2825;
	Pos[1] = 185;
	// Set velocity to zero; if you use jetpack, you would get like infinite speed after
	// some time of jetpacking into the trigger area, making you able to fly through the
	// whole map after some time
	Pos[2] = Pos[3] = 0.0;
	SetPos(ID, Pos);

	// Give the player some penelty (Attacker -1 -> from the environment)!
	DealDmg(ID, ID, 20.0, 0);
}
