View Single Post
joao7yt
Senior Member
Join Date: Nov 2014
Location: Brazil
Old 09-06-2017 , 04:37   Re: [CS:GO] Final and fancy solution for putting a player in a team on connect
Reply With Quote #11

Quote:
Originally Posted by Neuro Toxin View Post
I hook on player spawn.

The first occurrence is from client connecting. The second occurrence u can change the team and cs_respawn the client.

A better way is to listen to the jointeam command. Wait a frame and then set your team.
Well, then you need the player to select a team, which is not "fancy". My way it's exactly like valve does on their servers. And also if a player joins spec, you don't have player spawn to hook. And also if you do want to have the team menu disabled in your server, you wouldn't be able, since you require the client to spawn or do jointeam.
joao7yt is offline