Team Spawnpoint

So I was wondering how you could set some code to have a certain team spawn in a specific position, I saw this but I wasn’t sure if it could be used http://wiki.garrysmod.com/page/team/SetSpawnPoint

SetSpawnPoint can be used if the map has spawn classes already included. Otherwise, you’ll have to make a table of vectors for each team, then, spawn them at that position in a PlayerSpawn hook.