Skip to content

Commit

Permalink
fixed bug 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Dubjunk committed Jan 7, 2019
1 parent 6221bd0 commit d662eb0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ if (_role isEqualTo "cargo" || typeOf _vehicle isEqualTo KPLIB_preset_potatoF ||

// Exit if no permission is found
if (_permission isEqualTo "") exitWith {
false
true
};

[_permission] call KPLIB_fnc_permission_checkPermission
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
File: fn_permission_postInit.sqf
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes
Date: 2018-12-07
Last Update: 2018-12-29
Last Update: 2019-01-05
License: GNU General Public License v3.0 - https://www.gnu.org/licenses/gpl-3.0.html
Description:
Expand Down Expand Up @@ -32,6 +32,17 @@ if (isServer) then {
(KPLIB_preset_vehLightUnarmedPlF + KPLIB_preset_vehLightArmedPlF)
] call KPLIB_fnc_permission_addPermissionHandler;

// Add Transport Vehicle Permission
[
"TransportVehicle",
{[player, "TransportVehicle"] call KPLIB_fnc_permission_getPermission},
"STR_KPLIB_PERMISSION_TRANSPORTVEHICLE",
true,
"Vehicle",
"STR_KPLIB_PERMISSION_GROUPVEHICLE",
KPLIB_preset_vehTransPlF
] call KPLIB_fnc_permission_addPermissionHandler;

// Add Heavy Vehicle Permission
[
"HeavyVehicle",
Expand Down
4 changes: 4 additions & 0 deletions Missionframework/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1371,6 +1371,10 @@
<English>Artillery Vehicle</English>
<German>Artillerie Fahrzeuge</German>
</Key>
<Key ID="STR_KPLIB_PERMISSION_TRANSPORTVEHICLE">
<English>Transport Vehicle</English>
<German>Transportfahrzeug</German>
</Key>
<Key ID="STR_KPLIB_PERMISSION_TRANSPORTHELICOPTER">
<English>Transport Helicopter</English>
<German>Transporthelikopter</German>
Expand Down

0 comments on commit d662eb0

Please sign in to comment.