Skip to content

Commit

Permalink
Quartermaster role
Browse files Browse the repository at this point in the history
  • Loading branch information
Apricot-ale committed Mar 2, 2023
2 parents efd5a4a + 431f3ae commit 5573b36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Missionframework/scripts/client/misc/playerNamespace.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
File: playerNamespace.sqf
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes
Date: 2020-04-12
Last Update: 2020-07-06
Last Update: 2023-03-02
License: MIT License - http://www.opensource.org/licenses/MIT
Description:
Expand Down Expand Up @@ -36,8 +36,8 @@ while {true} do {
player setVariable ["KPLIB_fobName", _fobName];
player setVariable ["KPLIB_fobPos", _fobPos];

// Direct acces due to config, commander or admin
player setVariable ["KPLIB_hasDirectAccess", (getPlayerUID player) in KPLIB_whitelist_cmdrActions || {player == ([] call KPLIB_fnc_getCommander)} || {serverCommandAvailable "#kick"}];
// Direct acces due to config, commander or quartermaster or admin
player setVariable ["KPLIB_hasDirectAccess", (getPlayerUID player) in KPLIB_whitelist_cmdrActions || {player == ([] call KPLIB_fnc_getCommander)} || {player isEqualto (missionnamespace getVariable ['quartermaster',objNull])} || {serverCommandAvailable "#kick"}];

// Outside of startbase "safezone"
player setVariable ["KPLIB_isAwayFromStart", (player distance2d startbase) > 1000];
Expand Down

0 comments on commit 5573b36

Please sign in to comment.