team.SetSpawnPoint

Does this over ride the spawn points hardcoded into it by the map maker?

lmao no. It just picks where you want the player to spawn.

So it won’t stop the player from spawning where the map creator sets spawn points while making the map?

[editline]26th December 2010[/editline]

and why would you rate me dumb when PERP does it.

Well if you want the player to spawn only on the counter-terrorist spots you’d do,

[lua]team.SetSpawnPoint( TEAM_TEAMENUMHERE, “info_player_counterterrorist” );[/lua]

And don’t worry about kasumi~ rating you dumb he’s just a troll

Well like in PERP you spawn in town and by the “car dealership” however the default spawn points are completely different and you never spawn in the default map spawn points. I was wondering if team.SetSpawnPoint allowed you to overwrite it like that

[editline]26th December 2010[/editline]

also kasumi isn’t a troll he is a just a tranny retard.

[editline]26th December 2010[/editline]

I mean she*

No.

**[Gamemode.PlayerSpawn

http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=Gamemode.PlayerSpawn)**

-snop-

-snip-

ban him

You’re the new Cubar.

You’re the new Cubar. Also

[lua]
local SpawnPositions = {
Vector(0, 0, 64)
–Put whatever you want or create another table for other teams
}

function GM:PlayerSpawn(ply)
if ply:Team() == TEAM_ENUM then
local spawnpoint = table.Random(SpawnPositions)
if self:IsSpawnpointSuitable(ply, spawnpoint, false) then
ply:SetPos(spawnpoint)
end
end
end
[/lua]