Garry's Mod Wiki

Revision Difference

GM:PlayerCanJoinTeam#552848

<function name="PlayerCanJoinTeam" parent="GM" type="hook"> <ishook>yes</ishook>⤶ <description>Returns whether or not a player is allowed to join a team</description> <realm>Server</realm> <args> <arg name="ply" type="Player">Player attempting to switch teams</arg> <arg name="team" type="number">Index of the team</arg> </args> <rets> <ret name="" type="boolean">Allowed to switch</ret> </rets> </function>