Jump to content

amorelliku

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About amorelliku

  • Rank
    Newbie
  1. I want to disable vehicle returning garage when the owner is far from it. Does any one know how to do this?
  2. #include "..\..\script_macros.hpp" /* File: fn_restrainAction.sqf Author: Bryan "Tonic" Boardwine Description: Retrains the target. */ private["_unit"]; _unit = cursorObject; if(isNull _unit) exitWith {}; //Not valid if((player distance _unit > 3)) exitWith {}; if((_unit getVariable "restrained")) exitWith {}; if(player isEqualTo _unit) exitWith {}; if(playerSide in [west,independent]) then { hintSilent "Você algemou ele com sucesso"; }; if (side player isEqualTo civilian) then { if(life_inv_zipties < 1) exitWith { hintSilent "Você está sem zipties"; }; life_inv_zipties = life_inv_zipties - 1; hintSilent "Você algemou ele com sucesso"; }; if (!isPlayer _unit) exitWith {}; player say3D "cuff"; //Broadcast! player playMove "AinvPercMstpSnonWnonDnon_Putdown_AmovPercMstpSnonWnonDnon"; _unit setVariable["restrained",true,true]; [player] remoteExec ["life_fnc_restrain",_unit]; [0,"STR_NOTF_Restrained",true,[_unit getVariable["realname", name _unit], profileName]] remoteExecCall ["life_fnc_broadcast",west]; [0,"STR_NOTF_Restrained",true,[_unit getVariable["realname", name _unit], profileName]] remoteExecCall ["life_fnc_broadcast",independent]; [0,"STR_NOTF_Restrained",true,[_unit getVariable["realname", name _unit], profileName]] remoteExecCall ["life_fnc_broadcast",civilian]; With this code only the player who is retraining can listen to the cuff sound. Does anyone know who to solve this?
  3. My garage is not showing vehicle informations. dialog\ impound.hpp class Life_impound_menu { idd = 2800; name="life_vehicle_shop"; movingEnable = 0; enableSimulation = 1; onLoad = "ctrlShow [2330,false];"; class controlsBackground { class Life_RscTitleBackground: Life_RscText { colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"}; idc = -1; x = 0.1; y = 0.2; w = 0.8; h = (1 / 25); }; class MainBackground: Life_RscText { colorBackground[] = {0,0,0,0.7}; idc = -1; x = 0.1; y = 0.2 + (11 / 250); w = 0.8; h = 0.7 - (22 / 250); }; class Title: Life_RscTitle { idc = 2801; text = "$STR_GUI_Garage"; x = 0.1; y = 0.2; w = 0.8; h = (1 / 25); }; class VehicleTitleBox: Life_RscText { idc = -1; text = "$STR_GUI_YourVeh"; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"}; x = 0.11; y = 0.26; w = 0.3; h = (1 / 25); }; class VehicleInfoHeader: Life_RscText { idc = 2830; text = "$STR_GUI_VehInfo"; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"}; x = 0.42; y = 0.26; w = 0.46; h = (1 / 25); }; class CloseBtn: Life_RscButtonMenu { idc = -1; text = "$STR_Global_Close"; onButtonClick = "closeDialog 0;"; x = -0.06 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH)); y = 0.9 - (1 / 25); w = (6.25 / 40); h = (1 / 25); }; class RetrieveCar: Life_RscButtonMenu { idc = -1; text = "$STR_Global_Retrieve"; onButtonClick = "[] call life_fnc_unimpound;"; x = 0.1 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH)); y = 0.9 - (1 / 25); w = (6.25 / 40); h = (1 / 25); }; class SellCar: Life_RscButtonMenu { idc = -1; text = "$STR_Global_Sell"; onButtonClick = "[] call life_fnc_sellGarage; closeDialog 0;"; x = 0.26 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH)); y = 0.9 - (1 / 25); w = (6.25 / 40); h = (1 / 25); }; }; class controls { class VehicleList: Life_RscListBox { idc = 2802; text = ""; sizeEx = 0.04; colorBackground[] = {0.1,0.1,0.1,0.9}; onLBSelChanged = "_this call life_fnc_garageLBChange;"; x = 0.11; y = 0.302; w = 0.303; h = 0.49; }; class vehicleInfomationList: Life_RscStructuredText { idc = 2803; text = ""; sizeEx = 0.035; x = 0.41; y = 0.3; w = 0.5; h = 0.5; }; class MainBackgroundHider: Life_RscText { colorBackground[] = {0,0,0,1}; idc = 2810; x = 0.1; y = 0.2 + (11 / 250); w = 0.8; h = 0.7 - (22 / 250); }; class MainHideText: Life_RscText { idc = 2811; text = "$STR_ANOTF_QueryGarage"; sizeEx = 0.06; x = 0.24; y = 0.5; w = 0.6; h = (1 / 15); }; class InsureCar : life_RscButtonMenu { idc = 97480; text = "Você acionou o seguro" ; onButtonClick = "[] call life_fnc_insureCar;"; x = 0.43 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH)); and = 0 . 9 - ( 1 / 25 ); w = (6.25 / 40); h = (1 / 25); }; }; };
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.