Skip to content

Instantly share code, notes, and snippets.

@commy2
Last active September 3, 2019 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save commy2/b5d81fd4587cc257123efd4fcd5d2740 to your computer and use it in GitHub Desktop.
Save commy2/b5d81fd4587cc257123efd4fcd5d2740 to your computer and use it in GitHub Desktop.
// 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