Search the Community
Showing results for tags 'onlypilots'.
Found 1 result
-
Vehicle Restrictions Script on DS [SOLVED]
armatoday posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi, Below script -published here- turns not working with Dedicated Server after 1.66 Update. Any help really be appreciated Mission init.sqf [] execVM "scripts\Restrictions\Restrictions.sqf"; scripts\Restrictions\Restrictions.sqf BAKE_VREST_RESTRICTIONS = [ ["blackHawk", "a10"], [ [['["Driver"]'], ["pilot_1", "pilot_2"], "Pilots only."], ], ["a10"], [ [['["Driver"]'], ["123", "456"], "Members only."] ] ]; execVM "scripts\Restrictions\init.sqf"; scripts\Restrictions\init.sqf if (isDedicated) exitWith {}; waitUntil {!isNull player}; BAKE_VREST_RESTRICTIONS = missionNamespace getVariable ["BAKE_VREST_RESTRICTIONS", []]; BAKE_VREST_CHECK_INTERVAL = missionNamespace getVariable ["BAKE_VREST_CHECK_INTERVAL", 0.1]; BAKE_VREST_SHOW_ROLE = missionNamespace getVariable ["BAKE_VREST_SHOW_ROLE", false]; while {true} do { _vehicle = vehicle player; if (_vehicle != player) then { _role = str assignedVehicleRole player; if (BAKE_VREST_SHOW_ROLE) then { hintSilent _role; copyToClipboard _role; }; for "_i" from 1 to count BAKE_VREST_RESTRICTIONS step 2 do { if (str _vehicle in (BAKE_VREST_RESTRICTIONS select (_i - 1))) then { { _restrictedRoles = _x select 0; _playerWhitelist = _x select 1; if (_role in _restrictedRoles && !(str player in _playerWhitelist) && !(getPlayerUID player in _playerWhitelist)) exitWith { moveOut player; titleText [_x select 2, "PLAIN", 0.2]; }; } forEach (BAKE_VREST_RESTRICTIONS select _i); }; }; }; sleep BAKE_VREST_CHECK_INTERVAL; }; Thank you for your help in advance- 5 replies
-
- vehicle
- restrictions
-
(and 4 more)
Tagged with: