Gamemode.PlayerSpawnAsSpectator
From GMod Wiki
Event Hook | |
Hook Name | PlayerSpawnAsSpectator |
Syntax | GM:PlayerSpawnAsSpectator( Player ply ) |
Description | Player spawns as a spectator. |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.PlayerSpawnAsSpectator]Gamemode.PlayerSpawnAsSpectator [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Spawns the player as a spectator |
---|---|
Used on | |
Code | function GM:PlayerSpawn( ply ) GAMEMODE:PlayerSpawnAsSpectator( ply ) end |
Output | The player spawns as a spectator. |