Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //By Eagledude4
- _vehicle = _this select 0;
- _pos = _this select 1;
- _player = _this select 2;
- waitUntil {vehicle _player == _vehicle};
- switch (typeOf _vehicle) do {
- case "C_Offroad_01_F": {
- if (_pos == "cargo" && ((_vehicle getVariable "box_num") < 0) && (_vehicle getCargoIndex _player > 0)) then {
- if ((_vehicle getVariable "box_num") == -2) then {
- _player action ["Eject", _vehicle];
- _displayName = getText(configFile >> "CfgVehicles" >> (typeOf _vehicle) >> "displayName");
- [format ["You must remove the %1's cargo before entering the cargo space.", _displayName],"hint",owner _player] call BIS_fnc_MP;
- [[player,format ["You must remove the %1's cargo before entering the cargo space.", _displayName]],"globalChat",owner _player] call BIS_fnc_MP;
- } else {
- if (_vehicle getCargoIndex _player in [1,2]) then {
- _player action ["Eject", _vehicle];
- _displayName = getText(configFile >> "CfgVehicles" >> (typeOf _vehicle) >> "displayName");
- [format ["You must remove the %1's cargo before entering the cargo space.", _displayName],"hint",owner _player] call BIS_fnc_MP;
- [[player,format ["You must remove the %1's cargo before entering the cargo space.", _displayName]],"globalChat",owner _player] call BIS_fnc_MP;
- };
- };
- };
- };
- };
- [getPlayerUID _player,side _player,getPosASL _player,6] call DB_fnc_updatePartial;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement