Gamemode.PlayerDisconnected
From GMod Wiki
Revision as of 14:29, 5 March 2011 by TheFreeman193 (Talk | contribs)
Event Hook | |
Hook Name | PlayerDisconnected |
Syntax | GM:PlayerDisconnected( Player Player ) |
Description | Called whenever a player disconnects. |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.PlayerDisconnected]Gamemode.PlayerDisconnected [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Additional Notes
- This hook does not seem to be called if a player is kicked via concommand (kickid), however, it is called when you use Player.Kick.
- It is known that this function may not called under certain disconnect conditions. If you find one, please list it here.
- You can use Gamemode.EntityRemoved and check for a player entity for a certain way of detecting this.
See Also