htme_serverEventHandlerConnecting(script)
¶
Description¶
Call a script if a new player connected. This script has to meet the following specifications:
Callback Arguments:¶
Name | type | description |
---|---|---|
playe r_ma p | ds_m ap | a ds_map with the keys ip and port, which contain ip and port of the player |
Callback Returns:¶
TRUE if the connection is accepted. The engine will then register the
player
FALSE if the connection should be refused, the server will abort
connection
Arguments¶
Name | type | description |
---|---|---|
scrip t | resso urce id of a scrip t | The script to call when a player connected. |
Returns¶
Nothing