fnc_adminUIControl.sqf

Summary
fnc_adminUIControl.sqf
Functions
OCAP_recorder_fnc_adminUIControlRuns checks to determine if a player should have the administrative diary entry added or removed upon joining the mission or logging in/out as admin.
Variables
OCAP_hasAdminControlsApplied on units processed in OCAP_recorder_fnc_adminUIControl.

Functions

OCAP_recorder_fnc_adminUIControl

Description

Runs checks to determine if a player should have the administrative diary entry added or removed upon joining the mission or logging in/out as admin.

Parameters

_PIDPlayerID indicating unique network client on the server [String]
_eventEvent that triggered this call [[String], one of: “connect”, “login”, “logout”]

Returns

Nothing

Examples

["1234567890", "connect"] call FUNC(adminUIControl);

Public

No

Author

IndigoFox

Variables

OCAP_hasAdminControls

Applied on units processed in OCAP_recorder_fnc_adminUIControl.  Indicates whether or not they have the administrative diary entry available.  Server missionNamespace only.

Runs checks to determine if a player should have the administrative diary entry added or removed upon joining the mission or logging in/out as admin.
This function uses the OCAP_EH_Connected event handler to log “connected” events to the timeline.
An array or server-visible variable referencing one that is a list of playerUIDs.
Uses OCAP_EH_OnUserAdminStateChanged to detect when someone is has logged in or out of the server and calls OCAP_recorder_fnc_adminUIControl to update the admin UI.
Close