Last active
September 3, 2019 07:10
-
-
Save commy2/b5d81fd4587cc257123efd4fcd5d2740 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// preInit | |
missionNamespace setVariable ["mission_idstrs", true call CBA_fnc_createNamespace, true]; | |
if (isServer) then { | |
addMissionEventHandler ["PlayerConnected", { | |
params ["", "_playerUID", "_profileName", "", "_owner", "_idstr"]; | |
mission_idstrs setVariable [_playerUID, _idstr, true]; | |
}]; | |
}; | |
//postInit | |
private _idstr = mission_idstrs getVariable [getPlayerUID player, "-"]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment