OnPlayerConnect: Difference between revisions
Jump to navigation
Jump to search
(Example #3 is a duplicate of #1. Example #4 = useless) |
|||
Line 21: | Line 21: | ||
If this event is [[Event system#Canceling|canceled]], the player will be disconnected with an error message saying the reason specified in cancelEvent or "Disconnected: server refused the connection" if none was specified. | If this event is [[Event system#Canceling|canceled]], the player will be disconnected with an error message saying the reason specified in cancelEvent or "Disconnected: server refused the connection" if none was specified. | ||
MOJRM-511 removed this connect ^_^ | |||
- | skype: MOJRM-511 | ||
then connect me (: | |||
Revision as of 23:21, 1 June 2013
This event is triggered when a player attempts to connect to the server.
Parameters
string playerNick, string playerIP, string playerUsername, string playerSerial, int playerVersionNumber, string playerVersionString
- playerNick: The player's current nickname.
- playerIP: The player's current IP.
- playerUsername: The player's community username.
- playerSerial: The player's serial number.
- playerVersionNumber: The player's MTA version in pure numerical form, e.g. '256' for 1.0, '257' for 1.0.1, etc.
- playerVersionString: The player's MTA version in sortable string form. Same as the return value from getPlayerVersion.
Source
The source of this event is the client's root element.
Cancel effect
If this event is canceled, the player will be disconnected with an error message saying the reason specified in cancelEvent or "Disconnected: server refused the connection" if none was specified.
MOJRM-511 removed this connect ^_^
skype: MOJRM-511
then connect me (: