Removed KPLIB_fnc_isAdmin
This commit is contained in:
parent
2ccae67bcf
commit
176d8f1447
|
@ -50,7 +50,6 @@ class KPLIB
|
|||
class getVirtualCargo {};
|
||||
class getWeaponComponents {};
|
||||
class hasPermission {};
|
||||
class isAdmin {};
|
||||
class isBigtownActive {};
|
||||
class isClassUAV {};
|
||||
class isRadio {};
|
||||
|
|
|
@ -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"
|
|
@ -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 {
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue