All pastes #763632 Raw Edit

Anonymous

public lua v1 · immutable
·published 2007-11-06 16:58 UTC
rendered paste body
function GM:PlayerSelectSpawn( pl )	Msg("Selecting Spawn...\n")	// Move to a spawn point (Depending on their team)	local spawnpointEnt = ""		if( pl:Team() == TEAM_BLUE ) then		spawnpointEnt = "info_blue_spawn"	else		if( pl:Team() == TEAM_RED ) then			spawnpointEnt = "info_red_spawn"		end	end		local spawns = ents.FindByClass(spawnpointEnt)			if( spawns == null ) then // No spawn points			Msg("No Spawns Available!\n")			return		end		return spawns[1]end