OnClientConnectionRequest: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Event|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|OnClientConnectionRequest}} {{FuncParameters}} == Example == __EDIT_ME__ {{RelatedFunctions}} {{Serv..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Event|Server|1.0}} | {{Info|Event|Server|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Early callback of when a client tries to connect to the server. Client is not fully authorized by the server in this state. You can call [[CancelConnectionRequest]] in this event to disconnect the client immediately.}} | ||
{{FuncSyntax|OnClientConnectionRequest}} | {{FuncSyntax|OnClientConnectionRequest(ip, port)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|ip|IP address of the client connecting.}} | |||
{{FuncParam|port|Port of the client connecting. This is not the server port.}} | |||
== Example == | == Example == | ||
__EDIT_ME__ | __EDIT_ME__ |
Revision as of 22:39, 22 March 2019
Description
Early callback of when a client tries to connect to the server. Client is not fully authorized by the server in this state. You can call CancelConnectionRequest in this event to disconnect the client immediately.
Syntax
OnClientConnectionRequest(ip, port)
Parameters
- ip
IP address of the client connecting. - port
Port of the client connecting. This is not the server port.
Example
__EDIT_ME__
See also
Player
- OnPlayerServerAuth
- OnPlayerSteamAuth
- OnPlayerDownloadFile
- OnPlayerStreamIn
- OnPlayerStreamOut
- OnPlayerPickupHit
- OnPlayerJoin
- OnPlayerQuit
- OnPlayerSpawn
- OnPlayerDeath
- OnPlayerWeaponShot
- OnPlayerDamage
- OnPlayerChat
- OnPlayerChatCommand
- OnPlayerInteractDoor
- OnPlayerChangeDimension
Vehicle
- OnPlayerEnterVehicle
- OnPlayerLeaveVehicle
- OnPlayerStateChange
- OnVehicleRespawn
- OnVehicleStreamIn
- OnVehicleStreamOut
- OnVehicleDamage
- OnVehicleChangeDimension
- OnVehicleCreated
- OnVehicleDestroyed
Game
Package
NPC
- OnNPCReachTarget
- OnNPCDamage
- OnNPCSpawn
- OnNPCDeath
- OnNPCStreamIn
- OnNPCStreamOut
- OnNPCChangeDimension
- OnNPCCreated
- OnNPCDestroyed
Object
- OnObjectStopMoving
- OnObjectChangeDimension
- OnObjectCreated
- OnObjectDestroyed
- OnObjectStreamIn
- OnObjectStreamOut