OnPlayerIncomingConnection: Difference between revisions
(Created page with "{{Warning|This feature is currently unavailable in the current branch of Rage Multiplayer. This feature will be available in 1.0.}} This event is triggered when a player conn...") |
No edit summary |
||
| Line 1: | Line 1: | ||
{{Warning|This feature is currently unavailable in the current branch of Rage Multiplayer. This feature will be available in 1.0.}} | {{Warning|This feature is currently unavailable in the current branch of Rage Multiplayer. This feature will be available in 1.0.}} | ||
This event is triggered when a | This event is triggered when an player establishes a connection with the server before loading the resources. | ||
{{CSharpContainer| | {{CSharpContainer| | ||
Revision as of 09:48, 28 November 2019
This event is triggered when an player establishes a connection with the server before loading the resources.
C# Syntax
[ServerEvent(Event.IncomingConnection)]
Parameters
- ip: parameter input should be in string type
- serial: parameter input should be in string type
- rgscName: parameter input should be in string type
- rgscId: parameter input should be in ulong type
- cancel: parameter input should be in CancelEventArgs type
Example
[ServerEvent(Event.IncomingConnection)]
public void OnIncomingConnection(string ip, string serial, string rgscName, ulong rgscId, CancelEventArgs cancel)
{
NAPI.Util.ConsoleOutput($"Connecting: {rgscName} - {ip} - {serial} - {rgscId}");
}