OnPlayerSteamAuth: Difference between revisions
From Onset Developer Wiki
m Keeping client/server events seperated - avoids confusion. |
m Fixed typo: Removed mark as Client-Event |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Info|Event|Server | {{Info|Event|Server|1.0}} | ||
{{FuncDescription|Called when a player was authenticated by Steam. Once this event was called you can use [[GetPlayerSteamId]] to get the players SteamId. | {{FuncDescription|Called when a player was authenticated by Steam. Once this event was called you can use [[GetPlayerSteamId]] to get the players SteamId. | ||
Line 20: | Line 20: | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{ | {{PlayerEvents}} |
Latest revision as of 12:28, 17 January 2021
Description
Called when a player was authenticated by Steam. Once this event was called you can use GetPlayerSteamId to get the players SteamId. Steam identity authentication is mandatory. If it fails the player will be kicked.
It's noteworthy that a player is able to spawn prior to being authenticated.
Syntax
OnPlayerSteamAuth(player)
Parameters
- player
The player who was verified.
Example
function OnPlayerSteamAuth(player)
AddPlayerChat(player, "Your SteamId: "..GetPlayerSteamId(player))
end
AddEvent("OnPlayerSteamAuth", OnPlayerSteamAuth)
See also
- OnPlayerServerAuth
- OnPlayerSteamAuth
- OnPlayerStreamIn
- OnPlayerStreamOut
- OnPlayerJoin
- OnPlayerQuit
- OnPlayerSpawn
- OnPlayerDeath
- OnPlayerWeaponShot
- OnPlayerDamage
- OnPlayerChat
- OnPlayerChatCommand
- OnPlayerInteractDoor
- OnPlayWeaponHitEffects
- OnPlayerSwitchCamera
- OnPlayerEnterWater
- OnPlayerLeaveWater
- OnPlayerCrouch
- OnPlayerEndCrouch
- OnPlayerEndFall
- OnPlayerFall
- OnPlayerTalking