Hi there again
So the first argument is the team to move a player to, the third one (boolean) is whether the message should not be printed to chat, but what does the second one stand for?
player.switch_team() second argument
I think you probably got that information from an old thread. We used to use CBasePlayer::ChangeTeam, but that virtual function had its issues. We have since moved to CCSPlayer::SwitchTeam which only has one argument, the team to change to. If you want to hide the chat message when using this, you will need to use a PreEvent for player_team and return EventAction.STOP_BROADCAST.
Thanks, guys.
Indeed, I got that info from this post.
Indeed, I got that info from this post.
Return to “Plugin Development Support”
Who is online
Users browsing this forum: No registered users and 80 guests