Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * ExileServer_system_network_event_onPlayerConnected
- *
- * Exile Mod
- * www.exilemod.com
- * © 2015 Exile Mod Team
- *
- * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
- * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
- */
- private["_isKnownAccount"];
- _uid = _this select 0;
- _name = _this select 1;
- if (( "headlessclient" in _name) || ( "HC_HAL" in _name)) exitWith {};
- if !(_uid in ["", "__SERVER__", "__HEADLESS__"]) then
- {
- format["Player %1 (UID %2) connected!", _name, _uid] call ExileServer_util_log;
- _isKnownAccount = format["isKnownAccount:%1", _uid] call ExileServer_system_database_query_selectSingleField;
- if (_isKnownAccount) then
- {
- format["startAccountSession:%1:%2", _uid, _name] call ExileServer_system_database_query_fireAndForget;
- }
- else
- {
- format["createAccount:%1:%2", _uid, _name] call ExileServer_system_database_query_fireAndForget;
- };
- };
- true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement