Gamemode.PlayerAuthed

From GMod Wiki

Revision as of 02:18, 6 August 2011 by TylerB (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Event Hook
Hook NamePlayerAuthed
SyntaxGM:PlayerAuthed( Player ply, String SteamID, Integer UniqueID )
DescriptionCalled whenever the player is Authed with Steam and recieves the SteamID
ReturnsNil
Lua StateNewerServer.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.PlayerAuthed]Gamemode.PlayerAuthed [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]

Examples

DescriptionPrints "Player <name> (<steamid>|<uniqueid>) is authed" in console
Used onNewerServer.png
Code
function userAuthed( ply, stid, unid )
	print("Player "..ply:Name().." ("..stid.." - "..unid..") is authed")
end
hook.Add( "PlayerAuthed", "playerauthed", userAuthed )
OutputPlayer TylerB (STEAM_0:0:24261108 - 740201219) is authed


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox