2017-09-07 17:26:32 +00:00
|
|
|
/*
|
|
|
|
* Author: chris579
|
|
|
|
* Checks whether the player can move markers.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Whether the player can move markers <BOOL>
|
|
|
|
*
|
|
|
|
* Example:
|
2018-01-05 17:55:00 +00:00
|
|
|
* [] call ace_markers_fnc_canMove
|
2017-09-07 17:26:32 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
switch (GVAR(moveRestriction)) do {
|
2018-01-05 17:55:00 +00:00
|
|
|
case MOVE_RESTRICTION_NOBODY: {false};
|
|
|
|
case MOVE_RESTRICTION_ALL: {true};
|
|
|
|
case MOVE_RESTRICTION_ADMINS: {IS_ADMIN};
|
2017-09-07 17:26:32 +00:00
|
|
|
case MOVE_RESTRICTION_GROUP_LEADERS: {
|
2018-01-05 17:55:00 +00:00
|
|
|
leader ACE_player == ACE_player
|
2017-09-07 17:26:32 +00:00
|
|
|
};
|
|
|
|
case MOVE_RESTRICTION_GROUP_LEADERS_ADMINS: {
|
2018-01-05 17:55:00 +00:00
|
|
|
(leader ACE_player == ACE_player) || IS_ADMIN
|
2017-09-07 17:26:32 +00:00
|
|
|
};
|
2018-01-05 17:55:00 +00:00
|
|
|
default {true};
|
|
|
|
}; // return
|