mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
29 lines
715 B
Plaintext
29 lines
715 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: Dystopian
|
|
* Check whether local player is currently allowed to create a Zeus Module
|
|
*
|
|
* Arguments:
|
|
* None
|
|
*
|
|
* Return Value:
|
|
* Allowed to create module <BOOL>
|
|
*
|
|
* Example:
|
|
* call ace_zeus_fnc_canCreateModule
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
// Don't allow if we already are a zeus, intentionally using player instead of ace_player
|
|
if (!isNull getAssignedCuratorLogic player) exitWith { false };
|
|
|
|
(isNil QGVAR(zeus)) && {
|
|
switch (GVAR(canCreateZeus)) do {
|
|
case CAN_CREATE_ADMIN: {isServer || {IS_ADMIN_LOGGED}};
|
|
case CAN_CREATE_CONSOLE: {call BIS_fnc_isDebugConsoleAllowed};
|
|
case CAN_CREATE_ALL: {true};
|
|
default {false};
|
|
}
|
|
}
|