GM/PlayerClassChanged

From Garry's Mod
Jump to: navigation, search
 GM:PlayerClassChanged( )

Description

Called whenever a player's class is changed on the server-side with player_manager.SetPlayerClass.

Arguments

Player ply

The player whose class has been changed.

Arguments

number newID

The network ID of the player class's name string, or 0 if we are clearing a player class from the player.

Pass this into util.NetworkIDToString to retrieve the proper name of the player class.
Personal tools
Navigation