Removed KPLIB_fnc_isAdmin

This commit is contained in:
Wyqer 2019-12-05 18:31:31 +01:00
parent 2ccae67bcf
commit 176d8f1447
No known key found for this signature in database
GPG Key ID: D7E2F8BD7F1E48FA
4 changed files with 3 additions and 21 deletions

View File

@ -50,7 +50,6 @@ class KPLIB
class getVirtualCargo {};
class getWeaponComponents {};
class hasPermission {};
class isAdmin {};
class isBigtownActive {};
class isClassUAV {};
class isRadio {};

View File

@ -1,18 +0,0 @@
/*
File: fn_isAdmin.sqf
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes
Date: 2019-12-03
Last Update: 2019-12-03
License: MIT License - http://www.opensource.org/licenses/MIT
Description:
No description added yet.
Parameter(s):
_localVariable - Description [DATATYPE, defaults to DEFAULTVALUE]
Returns:
Function reached the end [BOOL]
*/
// TODO
serverCommandAvailable "#kick"

View File

@ -37,7 +37,7 @@ private _nearfob = [] call KPLIB_fnc_getNearestFob;
private _fobdistance = 9999;
private _nearest_sector = [GRLIB_fob_range] call KPLIB_fnc_getNearestSector;
private _prod_sector = [];
private _directAccess = (getPlayerUID player) in KP_liberation_commander_actions || {player == ([] call KPLIB_fnc_getCommander)} || {[] call KPLIB_fnc_isAdmin};
private _directAccess = (getPlayerUID player) in KP_liberation_commander_actions || {player == ([] call KPLIB_fnc_getCommander)} || {serverCommandAvailable "#kick"};
while {true} do {

View File

@ -1,3 +1,4 @@
// TODO
[] call compileFinal preprocessFileLineNumbers "whitelist.sqf";
if ( !GRLIB_use_whitelist ) exitWith {};
@ -9,7 +10,7 @@ sleep 1;
_commanderobj = [] call KPLIB_fnc_getCommander;
if ( !isNull _commanderobj ) then {
if ( player == _commanderobj && !([] call KPLIB_fnc_isAdmin)) then {
if ( player == _commanderobj && !(serverCommandAvailable "#kick")) then {
_tagmatch = false;
_idmatch = false;