GM:PlayerDisconnected

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

Contents

Description

Called when a player leaves the server.

Arguments

Player ply

the player

Examples

Example

Print a message to the chatbox upon player disconnect

function GM:PlayerDisconnected( ply )
     PrintMessage( HUD_PRINTTALK, ply:Name().. " has left the server." )
end

Output:

Garry :D has left the server.
Personal tools
Navigation