GM:PlayerAuthed

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

Contents

Description

Called once when the player is authenticated.

Arguments

Player ply

The player

Arguments

string steamid

The player's SteamID

Arguments

string uniqueid

The player's UniqueID

Examples

Example

function GM:PlayerAuthed( ply, steamid, uniqueid )
    print( ply:Name() .. " has been authenticated as " .. steamid .. "." )
end

Output:

If a person with the name "Garry :D" and SteamID "STEAM_0:1:12345678" joins the game, once authenticated, console will print out "Garry :D has been authenticated as STEAM_0:1:12345678."
Personal tools
Navigation