-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed so isCurator now also return true if your a curator and added…
… a missionAdmin check that check if player is curator or admin (#1213)
- Loading branch information
1 parent
48c87eb
commit b186778
Showing
4 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include "..\script_component.hpp"; | ||
/* | ||
* Author: SGT.Brostrom.A | ||
* This function return true if a player is curator or admin | ||
* | ||
* Arguments: | ||
* None | ||
* | ||
* Return Value: | ||
* True/False <BOOLEAN> | ||
* | ||
* Example: | ||
* call cScripts_fnc_player_isMissionAdmin | ||
* | ||
*/ | ||
|
||
if (!isNull (getAssignedCuratorLogic player)) exitWith {true}; | ||
if (call BIS_fnc_admin > 1) exitWith {true}; | ||
if (!isMultiplayer || {is3DENMultiplayer}) exitWith {true}; | ||
|
||
false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters