Garry's Mod Wiki

GM:PlayerRequestTeam

GM:PlayerRequestTeam( Player ply, number team )

Description

Request a player to join the team. This function will check if the team is available to join or not.

This hook is called when the player runs "changeteam" in the console.

To prevent the player from changing teams, see GM:PlayerCanJoinTeam

Arguments

1 Player ply
The player to try to put into a team
2 number team
Team to put the player into if the checks succeeded

Page Links


Special Pages


Wikis

?

Render Time: 36ms

DB GetPage 3
Generate Html 8
SaveChanges (1) 9
Render Body 0
Render Sidebar 12