Skip to content

Commit

Permalink
Only show message to curators
Browse files Browse the repository at this point in the history
  • Loading branch information
cerebral-314 committed Aug 13, 2024
1 parent 0014760 commit a053c3a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions mission/functions/core/init/fn_curator_init.sqf
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
params ["_player"];

if (!(isClass (configFile >> "CfgPatches" >> "zen_main")) || !(isClass (configFile >> "CfgPatches" >> "cba_main"))) exitWith {
// Bro-Nation Zeus Pack is not loaded so we can't use the curator system
_imag = "<img size='3' image='custom\wheelmenu\siren.paa' align='center'/>";
_text = "<br/><t color='#ff0000' size='3' shadow='1' shadowColor='#000000' align='center'>Warning!</t><br/>You must have the Bro-Nation Zeus Pack and CBA_A3 enabled to have curation access.<br/>";
hint parseText (_imag + _text);
};

private _curators = missionNamespace getVariable ["curatorUIDs", []];
private _playerIsCurator = _curators findIf { _x == getPlayerUID _player} > -1;

private _myCurObject = objNull;

if(_playerIsCurator == true) then
{
if (!(isClass (configFile >> "CfgPatches" >> "zen_main")) || !(isClass (configFile >> "CfgPatches" >> "cba_main"))) exitWith {
// Bro-Nation Zeus Pack is not loaded so we can't use the curator system
_imag = "<img size='3' image='custom\wheelmenu\siren.paa' align='center'/>";
_text = "<br/><t color='#ff0000' size='3' shadow='1' shadowColor='#000000' align='center'>Warning!</t><br/>You must have the Bro-Nation Zeus Pack and CBA_A3 enabled to have curation access.<br/>";
hint parseText (_imag + _text);
};

[_player] call {
[0, {
params ["_thePlayer"];
Expand Down

0 comments on commit a053c3a

Please sign in to comment.