Skip to content

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Missionframework/scripts/client/misc/playerNamespace.sqf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
File: playerNamespace.sqf
33
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes
44
Date: 2020-04-12
5-
Last Update: 2020-07-06
5+
Last Update: 2023-03-02
66
License: MIT License - http://www.opensource.org/licenses/MIT
77
88
Description:
@@ -36,8 +36,8 @@ while {true} do {
3636
player setVariable ["KPLIB_fobName", _fobName];
3737
player setVariable ["KPLIB_fobPos", _fobPos];
3838

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

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

0 commit comments

Comments
 (0)