Garry's Mod Wiki

player_manager.OnPlayerSpawn

  player_manager.OnPlayerSpawn( Player ply, boolean transiton )

Description

Applies basic class variables when the player spawns.

Called from GM:PlayerSpawn in the base gamemode.

Arguments

1 Player ply
Player to setup.
2 boolean transiton
If true, the player just spawned from a map transition. You probably want to not touch player's weapons or position if this is set to true.