Specific Spawning

I’m trying to make something based on if your a certain team, you spawn at a entity on the map, which is put when you run a function. So I was wondering, what function can I use or hook for when the player spawns to make this a reality?

**[Gamemode.PlayerSpawn

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

Just have them SetPos() next to the entity’s position.