GM/PlayerAuthed

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(commands? what commands?)
(Bug)
Line 1: Line 1:
 
{{Hook
 
{{Hook
 
|Description=Called once when the player is authenticated.
 
|Description=Called once when the player is authenticated.
 +
 +
{{Bug|Issue=3026|{{GlobalFunction|CurTime}} returns 0 in this hook.}}
 
|Realm=Server
 
|Realm=Server
 
|Predicted=No
 
|Predicted=No

Revision as of 20:27, 10 August 2018

 GM:PlayerAuthed( )

Contents

Description

Called once when the player is authenticated.

BUG

CurTime returns 0 in this hook.

Issue Tracker: #3026

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