Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation since 12/23/2018 in all areas

  1. 5 points
    This script is also posted on my portfolio. I will be copy pasting everything I posted on there for the airdrop. You can view it at http://altislife-scripting.com Lets begin, DISCLAIMER: I've spent countless hours making this right, and making sure it works 100% before posting it. I have tested this, for 6 hours straight making sure each and every setting works the way it should. If it does not work for you. You've done something wrong! Go back and repeat the steps. THIS IS FOR VERSION 5.0 OF ALTIS LIFE FRAMEWORK. THIS HAS ONLY BEEN TESTED ON 5.0 VERSION Most airdrop scripts posted publicly don't work properly without modification. This script has been re-modified to the original script from RyanTT (OptiX) Script Settings Map settings - Choose between Tanoa, Altis or Stratis (Depending on your servers map.) Location Settings (Not currently in the Config_Master) Debug Settings - Absolutely useless to be honest. Player side Check Weapons Config All settings interchangeable in Config_Master Installation Guide Make sure you read this, and understand before you go editing your files. If you don't feel comfortable editing your files. Don't add this script! I am not responsible for your actions. Make backups before you continue as we utilize the life_server folder. Head over to your Config_Master file (MISSIONDIR/config/Config_Master.hpp) and add the following to that file /* ADDITIONS BY DRUNKEN CHEETAH AIR DROP STUFF Change value to true to use different locations depending on your chosen map. Change the locations below. !!! YOU MUST ONLY EVER USE 1 SETTING. DO NOT USE MULTIPLE VALUE SETTINGS AS TRUE FOR MAP LOCATIONS. !!! */ use_drop_debug = false; //Default: false - This just adds some things to the rpt file, was for debugging purposes. Check the fn_Airdrop.sqf file. tanoa_location = false; //Default: false - Using Tanoa? Change to true altis_location = true; //Default: true - Using Altis? Change to true stratis_location = false; //Default: false - Using Stratis? Change to true enable_airdrop = true; //Default: true - Enable Airdrop? airdrop_markerSize = 1500; //Default: 1500 - Change Size of radius of airdrop airdrop_time = 3; //Default: 3 - Time in hours for the airdrop to take place //ONLY SET ONE PLAYERSIDE TO TRUE. SCRIPT WILL NOT RUN IF BOTH ARE SET TO TRUE. playerside_check_civ = false; //Default: false - Choose wheather or not to do a player check for civs. If X amount of civs are on then the drop will occure, else it wont. playerside_check_cop = false; //Default: false - Choose wheather or not to do a player check for cops. If X amount of cops are on then the drop will occure, else it wont. playerside_check_num = 4; //Default: 4 - If 4 cops/civs are on, then airdrop will occure. If less then this amount are on then it wont drop. use_custom_weapons = false; //Default: false - RECOMMENDED TO USE THIS, FOR MORE RELIABLE WEAPONS. This is to tell the script, that you want to use your own weapons. If this is set to false, default weapons will be added to the drop airdrop_weapon_guns[] = { //Make sure to only use classnames here. More classnames at BI Wiki -> https://community.bistudio.com/wiki/Arma_3_CfgWeapons_Weapons "arifle_MX_GL_ACO_F", "arifle_MX_ACO_F", "arifle_MXC_SOS_point_snds_F", "arifle_MX_RCO_pointer_snds_F", "arifle_MX_SW_Black_Hamr_pointer_F", "MMG_02_black_RCO_BI_F", "arifle_MXC_khk_Holo_Pointer_F", "arifle_AK12_F" }; airdrop_weapon_magazines[] = { //Make sure to only use classnames here. More classnames at BI Wiki -> https://community.bistudio.com/wiki/Arma_3_CfgWeapons_Weapons "30Rnd_65x39_caseless_mag", "30Rnd_65x39_caseless_mag_Tracer", "130Rnd_338_Mag", "30Rnd_762x39_Mag_Tracer_Green_F" }; Once you've done that, save the file and head over to your life_server folder ATTENTION MAKE A BACKUP BEFORE YOU CONTINUE! I AM NOT RESPONSIBLE IF YOU BREAK SOMETHING Navigate to: life_server/Functions/Missions (If you don't have the missions folder, create it) Inside that folder, we are going to create 2 new files First file is called: fn_initAirdrop.sqf Inside that file, paste the following code; #include "\life_server\script_macros.hpp" /* File: fn_initDrop.sqf Author: Drunken Cheetah Description: Initializes the dynamic air drop. Set times for mission to reoccure after done. */ //Every X hours sleep (LIFE_SETTINGS(getNumber, "airdrop_time") * 3600); []spawn TON_fnc_airdrop; Save that file, and create a new file in the same folder called fn_Airdrop.sqf Inside that file paste the following; #include "\life_server\script_macros.hpp" /* author: Drunken Cheetah description: Dynamic Air Drop Original Airdrop Script by RTT. */ private [ "_enableDrop","_radius","_marker","_markerText", "_positions", "_bmb", "_box", "_flare", "_light", "_container", "_containerDummy", "_mygroup1", "_mygroup2", "_mygroup3", "_heli1", "_heli2", "_heli3", "_smoke", "_para", "_posContainer", "_var","_heli4","_mygroup4" ]; _enableDrop = LIFE_SETTINGS(getNumber, "enable_airdrop"); //Turn on the airdrop? if(_enableDrop != 1) exitWith {}; //If the option to 'Enable Drop' isn't true, then exit and don't run //Playerside Check Settings _civs = LIFE_SETTINGS(getNumber, "playerside_check_civ"); _cops = LIFE_SETTINGS(getNumber, "playerside_check_cop"); _num = LIFE_SETTINGS(getNumber, "playerside_check_num"); if(_civs isEqualTo 1 && civilian countSide playableUnits < _num) exitWith {diag_log "NOT ENOUGH CIVS ARE ON. AIRDROP SCRIPT CANT RUN!";}; //ONLY CIV CHECK if(_cops isEqualTo 1 && west countSide playableUnits < _num) exitWith{diag_log "NOT ENOUGH COPS ARE ON. AIRDROP SCRIPT CANT RUN!";}; //ONLY COP CHECK //Do some checks first(Configuation in Config_Master) _radius = LIFE_SETTINGS(getNumber, "airdrop_markerSize"); //Size of the KoS Zone, usually quiet large _terrainAltis = LIFE_SETTINGS(getNumber, "altis_location"); //Get the true, false statement from Config_Master _terrainTanoa = LIFE_SETTINGS(getNumber, "tanoa_location"); //Get the true, false statement from Config_Master _terrainStratis = LIFE_SETTINGS(getNumber, "stratis_location"); //Get the true, false statement from Config_Master //The below settings, are drop locations ONLY. The starting location is random! If you want to change the drop locations. Goto the editor for the new locations if(_terrainAltis isEqualTo 1 && _terrainTanoa isEqualTo 1 && _terrainStratis isEqualTo 1) exitWith {diag_log "AIRDROP CONFIG ERROR! ALL MAPS ARE SET TO ON. SCRIPT WILL NOT RUN! CHECK YOUR CONFIG_MASTER FILE";}; if(_terrainAltis isEqualTo 1) then {positions = selectRandom[[24146.2,21618.4,0],[17070.6,12524.3,0],[11158.6,8752.99,0],[4038.37,12867.9,0],[8888.03,19459.4,0]];}; //ALTIS if(_terrainTanoa isEqualTo 1) then {positions = selectRandom[[12087.2,3766.09,0],[4809.03,3774.09,0],[9959.91,12097.9,0],[6340.12,10566.9,0],[2418.31,12585.3,0]];}; //TANOA if(_terrainStratis isEqualTo 1) then {positions = selectRandom[[5019.67,5905.58,0],[3889.79,3959.15,0],[1788.78,5556.1,0],[2416.62,1600.21,0],[6559.68,5191.21,0]];}; //STRATIS //All locations are random drop locations i've chosen on each map. //Start Airdrop [3,"<t size='1.2'><t color='#FF0000'>Airdrop-Mission</t></t><br/><br/><t size='1'>A helicopter is going to drop a Supplycrate in 15 minutes! The drop-location will be transmitted soon!</t>"] remoteExec ["life_fnc_broadcast",0]; sleep (5*60); //This is for debug purposes. Change settings in Config_Master if (LIFE_SETTINGS(getNumber,"use_drop_debug") isEqualTo 1) then { private _sPos = switch(worldName) do { case "Altis": { diag_log format ["AIRDROP::: %1 Map Used. Location is set to %2", worldName, positions];//debug }; case "Tanoa": { diag_log format ["AIRDROP::: %1 Map Used. Location is set to %2", worldName,positions];//debug }; case "Stratis": { diag_log format ["AIRDROP::: %1 Map Used. Location is set to %2", worldName,positions]; //debug }; }; }; _marker = createMarker ["AirdropMarker",positions]; "AirdropMarker" setMarkerColor "ColorRed"; "AirdropMarker" setMarkerType "Empty"; "AirdropMarker" setMarkerShape "ELLIPSE"; "AirdropMarker" setMarkerSize [_radius,_radius]; _markerText = createMarker ["Airdropmarkertext", positions]; "Airdropmarkertext" setMarkerColor "ColorBlack"; "Airdropmarkertext" setMarkerText "Airdrop-Mission"; "Airdropmarkertext" setMarkerType "mil_warning"; //-- BROADCAST IT [3,"<t size='1.2'><t color='#FF0000'>Airdrop-Mission</t></t><br/><br/><t size='1'>10 minutes until the helicopter will drop the supplies! Check your map for the drop-location!</t>"] remoteExec ["life_fnc_broadcast",0]; sleep 300; [3,"<t size='1.2'><t color='#FF0000'>Airdrop-Mission</t></t><br/><br/><t size='1'>5 minutes until the helicopter will drop the supplies!</t>"] remoteExec ["life_fnc_broadcast",0]; sleep 60; [3,"<t size='1.2'><t color='#FF0000'>Airdrop-Mission</t></t><br/><br/><t size='1'>4 minutes until the helicopter will drop the supplies!</t>"] remoteExec ["life_fnc_broadcast",0]; sleep 60; [3,"<t size='1.2'><t color='#FF0000'>Airdrop-Mission</t></t><br/><br/><t size='1'>3 minutes until the helicopter will drop the supplies!</t>"] remoteExec ["life_fnc_broadcast",0]; sleep 60; [3,"<t size='1.2'><t color='#FF0000'>Airdrop-Mission</t></t><br/><br/><t size='1'>2 minutes until the helicopter will drop the supplies!</t>"] remoteExec ["life_fnc_broadcast",0]; sleep 60; [3,"<t size='1.2'><t color='#FF0000'>Airdrop-Mission</t></t><br/><br/><t size='1'>1 minute until the helicopter will drop the supplies!</t>"] remoteExec ["life_fnc_broadcast",0]; sleep 60; _heli1 = createVehicle ["B_Heli_Transport_03_unarmed_F", [7950, 9667, 0], [], 0, "FLY"]; _heli2 = createVehicle ["B_Heli_Attack_01_F", [7950, 9700, 0], [], 0, "FLY"]; _heli3 = createVehicle ["B_Heli_Attack_01_F", [7950, 9630, 0], [], 0, "FLY"]; _heli1 allowDamage false; _heli2 allowDamage false; _heli3 allowDamage false; //Lock the vehicles incase a player some how can access them _heli1 lock 2; _heli2 lock 2; _heli3 lock 2; _mygroup1 = [[7950, 9667, 0], civilian, ["O_G_Soldier_SL_F"],[],[],[],[],[],180] call BIS_fnc_spawnGroup; _mygroup2 = [[7950, 9667, 0], civilian, ["O_G_Soldier_SL_F"],[],[],[],[],[],180] call BIS_fnc_spawnGroup; _mygroup3 = [[7950, 9667, 0], civilian, ["O_G_Soldier_SL_F"],[],[],[],[],[],180] call BIS_fnc_spawnGroup; {_x moveInDriver _heli1}forEach units _mygroup1; {_x moveInDriver _heli2}forEach units _mygroup2; {_x moveInDriver _heli3}forEach units _mygroup3; _mygroup1 addWaypoint [positions, 0]; _mygroup1 addWaypoint [[2380.47,22267.8,0], 0]; _mygroup2 addWaypoint [positions, 0]; _mygroup2 addWaypoint [[2380.47,22267.8,0], 0]; _mygroup3 addWaypoint [positions, 0]; _mygroup3 addWaypoint [[2380.47,22267.8,0], 0]; _markerText = createMarker ["airbox_marker", [14028.5,18719.7,0.0014267]]; "airbox_marker" setMarkerColor "ColorBlue"; "airbox_marker" setMarkerText " Airdrop-Box"; "airbox_marker" setMarkerType "mil_destroy"; _containerDummy = createVehicle ["Land_Cargo20_blue_F", [3450.7363, 16708.432, 90], [], 0, "CAN_COLLIDE"]; _containerDummy attachTo [_heli1, [0,0,-3.5]]; _containerDummy setDir 90; while {positions distance _heli1 > 150} do {"airbox_marker" setMarkerPos getPos _heli1; sleep 1;}; [3,"<t size='1.2'><t color='#FF0000'>Airdrop-Mission</t></t><br/><br/><t size='1'>The supplies have been dropped! 20 minutes until self destruction!</t>"] remoteExec ["life_fnc_broadcast",0]; sleep 10; [3,"<t size='1.2'><t color='#ADD8E6'>Attention Officers</t></t><br/><br/><t size='1'>Stop the rebels from stealing the airdrop contents!</t>"] remoteExec ["life_fnc_broadcast",west]; //-- DROP CONTAINER, ADD PARACHUTE, FLARE & LIGHT deleteVehicle _containerDummy; sleep 0.1; _container = createVehicle ["Land_Cargo20_blue_F", [3450.7363, 16708.432, 90], [], 0, "CAN_COLLIDE"]; _para = createVehicle ["O_Parachute_02_F", [getPos _heli1 select 0, getPos _heli1 select 1, getPos _heli1 select 2], [], 0, ""]; _para setPosATL (_heli1 modelToWorld[0,0,100]); _para attachTo [_heli1, [0,0,-10]]; detach _para; _container attachTo [_para, [0,0,-2]]; _container setDir 90; playSound3D ["a3\sounds_f\weapons\Flare_Gun\flaregun_1_shoot.wss", _container]; _smoke = "SmokeShellRed" createVehicle [getPos _container select 0, getPos _container select 1,0]; _smoke attachTo [_container, [0,0,0]]; _light = "Chemlight_green" createVehicle getPos _container; _light attachTo [_container,[0,0,0]]; _flare = "SmokeShellYellow" createVehicle getPos _container; _flare attachTo [_container,[0,0,0]]; sleep 0.1; //-- while { (getPos _container select 2) > 2 } do { "airbox_marker" setMarkerPos getPos _container;sleep 1; }; detach _container; _container setPos [getPos _container select 0, getPos _container select 1, (getPos _container select 2)+0.5]; playSound3D ["A3\Sounds_F\sfx\alarm_independent.wss", _container]; sleep 6; "M_NLAW_AT_F" createVehicle [getPos _container select 0, getPos _container select 1, 0]; _posContainer = getPos _container; deleteVehicle _container; sleep 0.5; _box = createVehicle ["CargoNet_01_box_F", _posContainer, [], 0, "CAN_COLLIDE"]; _box allowDamage false; _smoke = "SmokeShellGreen" createVehicle [getPos _box select 0,getPos _box select 1,0]; _flare = "SmokeShellYellow" createVehicle getPos _container; _light attachTo [_box,[0,0,0]]; _flare attachTo [_box,[0,0,0]]; // Fill box clearWeaponCargoGlobal _box; clearMagazineCargoGlobal _box; clearItemCargoGlobal _box; sleep 3; if(LIFE_SETTINGS(getNumber, "use_custom_weapons") isEqualTo 1) then { _randomAmount = floor(random 40); _airdrop_contents = LIFE_SETTINGS(getArray,"airdrop_weapon_guns"); _airdrop_magazines = LIFE_SETTINGS(getArray, "airdrop_weapon_magazines"); //Weapons _box addWeaponCargoGlobal [selectRandom _airdrop_contents,_randomAmount]; _box addWeaponCargoGlobal [selectRandom _airdrop_contents,_randomAmount]; _box addWeaponCargoGlobal [selectRandom _airdrop_contents,_randomAmount]; _box addWeaponCargoGlobal [selectRandom _airdrop_contents,_randomAmount]; _box addWeaponCargoGlobal [selectRandom _airdrop_contents,_randomAmount]; _box addWeaponCargoGlobal [selectRandom _airdrop_contents,_randomAmount]; //magazines _box addMagazineCargoGlobal [selectRandom _airdrop_magazines,_randomAmount]; _box addMagazineCargoGlobal [selectRandom _airdrop_magazines,_randomAmount]; _box addMagazineCargoGlobal [selectRandom _airdrop_magazines,_randomAmount]; _box addMagazineCargoGlobal [selectRandom _airdrop_magazines,_randomAmount]; _box addMagazineCargoGlobal [selectRandom _airdrop_magazines,_randomAmount]; _box addMagazineCargoGlobal [selectRandom _airdrop_magazines,_randomAmount]; }else { _var=floor(random 6); if (_var==0) then { _box addWeaponCargoGlobal ["LMG_Zafir_F", 5]; }; if (_var==1) then { _box addWeaponCargoGlobal ["arifle_TRG20_F", 5]; }; if (_var==2) then { _box addWeaponCargoGlobal ["LMG_Mk200_F", 5]; }; if (_var==3) then { _box addWeaponCargoGlobal ["SMG_01_F", 25]; }; if (_var==4) then { _box addWeaponCargoGlobal ["srifle_GM6_F", 5]; }; if (_var==5) then { _box addWeaponCargoGlobal ["SatchelCharge_Remote_Mag", 10]; }; }; sleep 0.1; // Fill box end sleep 300; deleteVehicle _heli1; deleteVehicle _heli2; deleteVehicle _heli3; sleep 600; [3,"<t size='1.2'><t color='#FF0000'>Airdrop-Mission</t></t><br/><br/><t size='1'>5 minutes until self destruction</t>"] remoteExec ["life_fnc_broadcast",0]; sleep 240; [3,"<t size='1.2'><t color='#FF0000'>Airdrop-Mission</t></t><br/><br/><t size='1'>1 minute until self destruction</t>"] remoteExec ["life_fnc_broadcast",0]; sleep 50; [3,"<t size='1.2'><t color='#FF0000'>Airdrop-Mission</t></t><br/><br/><t size='1'>10 seconds until self destruction</t>"] remoteExec ["life_fnc_broadcast",0]; sleep 10; [3,"<t size='1.2'><t color='#FF0000'>Airdrop-Mission</t></t><br/><br/><t size='1'>The AirDrop-Mission has ended! The zone will remain for a further 10 minutes.</t>"] remoteExec ["life_fnc_broadcast",0]; deleteVehicle _box; _bmb = "BO_GBU12_LGB" createVehicle [(getPos _box select 0)-21,(getPos _box select 1)+21,0]; sleep 1; _bmb = "BO_GBU12_LGB" createVehicle [(getPos _box select 0)-1,(getPos _box select 1)+56,0]; sleep 1; _bmb = "BO_GBU12_LGB" createVehicle [(getPos _box select 0)+23,(getPos _box select 1)-75,0]; sleep 1; _bmb = "BO_GBU12_LGB" createVehicle [(getPos _box select 0)-50,(getPos _box select 1)+1,0]; sleep 1; _bmb = "BO_GBU12_LGB" createVehicle [(getPos _box select 0)+87,(getPos _box select 1)-22,0]; sleep 1; _bmb = "BO_GBU12_LGB" createVehicle [(getPos _box select 0)+0,(getPos _box select 1)-0,0]; sleep 1; _bmb = "BO_GBU12_LGB" createVehicle [(getPos _box select 0)+20,(getPos _box select 1)-20,0]; sleep 1; _bmb = "BO_GBU12_LGB" createVehicle [(getPos _box select 0)-100,(getPos _box select 1)+56,0]; sleep 1; _bmb = "BO_GBU12_LGB" createVehicle [(getPos _box select 0)+100,(getPos _box select 1)-100,0]; sleep 1; _bmb = "BO_GBU12_LGB" createVehicle [(getPos _box select 0)-55,(getPos _box select 1)+123,0]; sleep 1; _bmb = "BO_GBU12_LGB" createVehicle [(getPos _box select 0)+577,(getPos _box select 1)-83,0]; sleep 1; _bmb = "BO_GBU12_LGB" createVehicle [(getPos _box select 0)+35,(getPos _box select 1)-99,0]; sleep 1; _bmb = "BO_GBU12_LGB" createVehicle [(getPos _box select 0)+100,(getPos _box select 1)-100,0]; sleep 1; _bmb = "BO_GBU12_LGB" createVehicle [(getPos _box select 0)-431,(getPos _box select 1)-431,0]; deleteMarker "airbox_marker"; sleep (10 * 60); [3,"<t size='1.2'><t color='#FF0000'>Airdrop-Mission</t></t><br/><br/><t size='1'>The airdrop zone has now self destructed. You must manually declare on other players.</t>"] remoteExec ["life_fnc_broadcast",0]; "Airdropmarker" setMarkerAlpha 0; "Airdropmarkertext" setMarkerAlpha 0; deleteMarker "Airdropmarker"; deleteMarker "Airdropmarkertext"; [] spawn TON_fnc_initAirdrop; Now save that file, and head back to your life_server folder Open the file life_server/config.cpp and add the following under class housing class Missions { file = "\life_server\Functions\Missions"; class Airdrop {}; class initAirdrop {}; }; Save that file, and head to life_server/init.sqf somewhere at the bottom, add the following; [] execVM "\life_server\Functions\Missions\fn_initAirdrop.sqf"; Now save that file, and save the rest of the files. Make sure to re-pbo your life_server folder Once that is all complete, head back to your MISSIONDIR/config/Config_Master.hpp to edit the airdrop settings accordingly. If its all done correctly, good job! You now have a working airdrop script, with extra settings. THINGS TO NOTE: If the drop zone is smaller than 550 the airdrop box will be dropped outside the KOS (Most cases) If you want to change your drop locations, do so in the fn_Airdrop.sqf at line 35 for altis. You don't need to use the debug settings at all. These were added for testing! Keep them if you want. I recommend as stated in Config_Master to use the use_custom_weapons to get more of a reliable box filling. NEVER set your player side check to TRUE for both CIV and COP NEVER set your map settings to true for all 3. The script wont run! Only use the map which is on your server. I don't think I missed anything, I apologize in advanced if I did! To stay up-to date on my scripts, and scripts I've edited for the 5.0 version. Visit my portfolio. Most things will be posted there, before here. http://altislife-scripting.com If you need help, don't hesitate to ask for it! If it does not work for you, post the RPT logs, if you don't get a reply within a couple hours. Go back to the beginning, and re-read everything step by step.
  2. 2 points
    This is by far the most useless post of 2019, no more please. @XaFlaForo
  3. 2 points
    Yes, now rich kids paying 500 dollars to remove IPS copyright notice or is this the actual reason it's not there [WF NULL] Invision Community Suite 4.3. I wish I had 1200 dollars for forum software. @Deadlesszombie How does one get this much money.
  4. 1 point
    FIXED! @CiskaLV Gave me their market files we had to create and it worked first time!, not sure what the issue was but thank you dude
  5. 1 point
  6. 1 point
    It's not a script/system its an edit of a script. You change a table in the SQL database Add life_copnpas as an INT in the life_server and then pass it in the init. Then in config_vehicles pass the INT as a condition. What do you mean by departments.
  7. 1 point
    Use a more recent version of MySQL / MariaDB. That was an old limitation before MySQL 5.6.5.
  8. 1 point
    As stated in the thread, you need to use a custom dialog or text with a PAA in it and then display that, then remove it when your introcam ends. It's just like any other dialog.
  9. 1 point
    @kdaws5 1) Go into the arma 3 editor 2) Click on the the yellow icon for objects and type info and it should come up then place where ever you want 3) 2x click on it and copy this into the init: this setObjectTexture [0, "\foldername\texture.paa"]; 4) hit ok then it should work
  10. 1 point
    Make sure you understand what he fixed for you, you were missing quotes if you needed to change the top, which is not the case
  11. 1 point
    Hi there Daniel, As @Deadlesszombie already had said. You need to change the _servername to your exactly what it's in your server config file. Do NOT edit the line 7. Line 7 is taking your server name and check it what you have posted in the script. If it's not the same, it will kill the player. Fx if someone took your mission file and put it on their server and changed their server name. It will not match with the server name you had put in the IF statement so they will get killed all the time. if (!isMultiplayer) exitWith {}; _servername = serverName; if (_servername != "[ENG] FuriousRP (In Development)") exitWith { [] spawn { while {true} do { _layer = "normal" cutText ["This mission belongs to FuriousRP!","PLAIN"]; sleep 30; if(vehicle player != player) then { vehicle player setDamage 1; }; _veh = "Bo_GBU12_LGB" createVehicle position player; sleep 5; _layer = "normal" cutText ["This mission belongs to FuriousRP!","PLAIN"]; player setDamage 1; sleep 2; "shit" cutText ["", "BLACK", 0.5, true]; sleep 10; ["stealmission",false,true] call BIS_fnc_endMission; }; }; }; I had changed it for you. Kind regards HappyDuckie
  12. 1 point
    Your previous posted script had the ExitWith Wrong, the most recent has it fixed
  13. 1 point
    I can do the notification of safezone, and no shooting in another version. Ahh ok no worries, thanks haha
  14. 1 point
    No error, he had a UTF BOM at the end of the file that was causing the issue, probably from a weird copy and paste.
  15. 1 point
    I tried with another mission file and some other errors poped up, if ur curious of what errors it was with cop_uniform not found and whatever. So I'll skip this script, thank you for trying to help me man
  16. 1 point
    I spent a while on this, to make it suitable for the latest Framework build (5.0). This is exactly as the tutorial says on these forums, except it now works for 5.0 . After playing around with it, I found it was only a couple lines that needed to be changed lol So credits to IceEagle132 for posting it. Original Author: RYN_Ryan Step 1: inside life_server\init.sqf Add: [] execVM "\life_server\Functions\Airdrop\config.sqf"; [] execVM "\life_server\Functions\Airdrop\fn_generateAirdropAuto.sqf"; Step 2: Open life_server\config.cpp under class TON_System Add: class Airdrop { file = "\life_server\Functions\Airdrop"; class generateAirdrop {}; }; Step 3: Put the Airdrop folder in life_server\Functions All done with that part. To change the drop locations, open the file: life_server/Functions/Airdrop/config.sqf and find: airdrop_positions = [[5228.49,12576.7,0],[5560.94,14875.2,0],[7138.13,13083,0],[5863.29,10692.5,0]]; These coords are from the original post, to find out where the locations are, I changed them, and reduced them to 3 locations instead of 4. If you want to use the above coords, thats fine other wise my coords are airdrop_positions = [[4091.32,12078.7,-6.86646e-005],[10934.5,13456.7,-1.33514e-005],[14491.1,18790.1,-9.15527e-005]]; To change the time of how often the drops happen, Open life_server\Functions\Airdrop\config.sqf This is set for 1 every 2 hours _airdrop_time_interval = [1,2]; Now we are all done with the life_server folder, head over to your mission folder, and navigate to MISSION/core/functions/network - and open the file: fn_broadcast.sqf On line 47 add the following; (if you have not already got this in your file) case 5: {hint parseText format["%1", _message]}; and line, 55 add this(if you do not already have this in your file) case 5: {hint parseText format["%1", _message]}; Head to MISSION/core/configuration.sqf and add this underneath your last life_xxx = xxx airdrop_goingon = false; Now goto MISSION/CfgRemoteExec.hpp and add this to the server only functions; F(TON_fnc_generateAirdrop,SERVER) Now you should be right. To call it in the debug console, use the following; [position player] remoteExec ["TON_fnc_generateairdrop",0]; If you want to have X amount of players on for the drop to happen, uncomment line 18 in fn_generateAirdrop.sqf and line 19 in fn_generateAirdropAuto.sqf Airdrop.rar
  17. 1 point
    Hi, I am currently looking for a group of people willing to assist me with the preparation of a new community coming early 2019, I am looking for developers who understand how much time is needed to make a new community and not flake out when going gets tuff, The community has a stable income and won't be getting shut unless 100% necessary, I am as well looking for people who are good at advertising to join and advertise our community and engage with people on our social media accounts. The server will be on Malden and won't be released until we believe we have made it perfect. If you are interested please just send me a private message on here and I will try to respond to you as soon as possible. You may also contact me via; Discord; BOOTHY#0095 Email; [email protected] Steam; https://steamcommunity.com/profiles/76561198094
  18. 1 point
    Hey all, been a while since I last posted a release thread. Anyway, the title of this pretty much sums up what this script does, but none the less.. Here is an explanation I played a server a while ago, which had a basic drug dealer that changed spots every restart.. I liked it, but not the fact that its in 1 spot for 6-8 hours etc. So i decided to whip up my own, which I think is better.. The drug dealer changes spots X amount of minutes.. So when you start your server, it initialises it starts after 10 minutes of the server being up & running. Once the drug dealer has spawned in, it stays in the one place for 45 minutes (its what I chose for the server I made this for) So, wheres the script? Lets get started. First of all... Go edit your map, and delete all the drug dealers on the map.(NPC, Label Txt, Marker etc) Second of all... Go into life_server/init.sqf and delete this entire line of code from that file around line 165 ish. [] spawn { for "_i" from 0 to 1 step 0 do { uiSleep (30 * 60); { _x setVariable ["sellers",[],true]; } forEach [Dealer_1,Dealer_2,Dealer_3]; }; }; Save the file. Don't close it for now.. Open your preferred text editor (Notepad++ recommended) and add this code into it; Save the file as fn_initDD.sqf /* Author:Drunken Cheetah aka Pril File: fn_initDD.sqf Description: Initializes drug dealer before changing spots begins. */ sleep (10*60); []spawn TON_fnc_vDrugdealer; Save that file in the folder life_server/Functions/Systems Go back to life_server/Functions folder and create a new folder called Missions. In that folder create a new .sqf file called fn_vDrugdealer.sqf and add the following to that; #include "\life_server\script_macros.hpp" /* File Name: fn_initDrugD.sqf Author: Drunken Cheetah aka Pril Desc: Dynamic drug dealer, moves position every X minutes. Version: 2.1 */ private ["_drug1","_positions","_drugdealer","_spawnPos"]; _drugdealer = "C_Man_casual_1_F"; //The positions below are random locations on Altis. private _positions = [[11729.6,18285.8,0],[8087.36,14434.5,0],[20644.8,5913.31,-7.62939e-006],[27034.4,23007.9,0.391939]]; private _spawnPos = _positions select floor random count _positions; diag_log "..:: DRUNKEN CHEETAHS DRUG DEALER SCRIPT - STARTING ::.."; [3, "<t size='1.2'><t color='#FF0000'>Drug Dealer</t></t><br/><br/>The drug dealer has found a new place to deal from!"] remoteExec ["life_fnc_broadcast",civilian]; [3, "<t size='1.2'><t color='#000000'>Drug Dealer</t></t><br/><br/>Attention Officers. <br/> We have received a tip from a local resident regarding a class A drug dealer. <br/><br/> His last known location has been marked on your map."] remoteExec ["life_fnc_broadcast",west]; sleep 0.3; _drug1 = createMarker ["drug_dealer",_spawnPos]; "drug_dealer" setMarkerColor "ColorEAST"; "drug_dealer" setMarkerType "mil_dot"; "drug_dealer" setMarkerText "Drug Dealer"; dd = createVehicle ["C_Man_casual_1_F",_spawnPos, [], 0, "CAN_COLLIDE"]; [dd,[localize "STR_MAR_Question_Dealer",life_fnc_questionDealer,"",0,false,false,"",'isNull objectParent player && player distance _target < 5 && playerSide isEqualTo west && !life_action_inUse']] remoteExec ["addAction",0,dd]; [dd,["Drug Dealer",life_fnc_virt_menu,"drugdealer",0,false,false,"",'playerSide isEqualTo civilian']] remoteExec ["addAction",0,dd]; dd allowDamage false; /* Stay in 1 place for 45 minutes, then move spots again Change the number below for how long the drug dealer will stay in 1 place for, before moving again. Its preferred to leave the *60 there as that represents minutes. E.g: 45*60 is 45 minutes. */ sleep (45*60); [3, "<t size='1.2'><t color='#FF0000'>Drug Dealer</t></t><br/><br/>The drug dealer is packing up and moving to a new location. When he arrives, his new location will be marked on map!"] remoteExec ["life_fnc_broadcast",civilian]; deleteMarker "drug_dealer"; deleteVehicle dd; //You don't really need to have this, it was more for testing. Same as above diag_log "..:: DRUNKEN CHEETAHS DRUG DEALER SCRIPT - FINISHED, WAITING... ::.."; sleep 2; []spawn TON_fnc_initdd; Now that's all the scripts we need to create. Make sure to save the file in the Missions folder we created earlier. Now go back to life_server/ folder and edit the config.cpp file Underneath class Playtime add the following under it; class Missions { file = "\life_server\Functions\Missions"; class vDrugdealer {}; }; Scroll up the file a little and find Class Systems Add the following underneath terrainsort class initDD {}; Save the file, and re-open the file life_server/init.sqf For the initialisation to work correctly, we need to make sure it starts with the server. So where you deleted the first section of code from add the following; //Custom Missions // 1. Dynamic Drug Dealer [] execVM "\life_server\Functions\Systems\fn_initDD.sqf"; Thats it! Now save all the files, and re-pbo your life_server folder. OPTIONAL FOR THOSE WHO DON'T USE VERSION 5 OF THE FRAMEWORK. For some people you may not have the correct broadcast line, to fix this.. Replace the following code in your \core\functions\network\fn_broadcast.sqf /* File: fn_broadcast.sqf Author: Bryan "Tonic" Boardwine Description: Broadcast system used in the life mission for multi-notification purposes. */ params [ ["_type", 0, [0, []]], ["_message", "", [""]], ["_localize", false, [false]], ["_arr", [], [[]]] ]; if (_message isEqualTo "") exitWith {}; if (_localize) exitWith { private _msg = switch (count _arr) do { case 0: {localize _message;}; case 1: {format [localize _message,_arr select 0];}; case 2: {format [localize _message,_arr select 0, _arr select 1];}; case 3: {format [localize _message,_arr select 0, _arr select 1, _arr select 2];}; case 4: {format [localize _message,_arr select 0, _arr select 1, _arr select 2, _arr select 3];}; }; if (_type isEqualType []) then { { switch (_x) do { case 0: {systemChat _msg;}; case 1: {hint _msg;}; case 2: {titleText[_msg,"PLAIN"];}; }; true } count _type; } else { switch (_type) do { case 0: {systemChat _msg;}; case 1: {hint _msg;}; case 2: {titleText[_msg,"PLAIN"];}; }; }; }; if (_type isEqualType []) then { { switch (_x) do { case 0: {systemChat _message}; case 1: {hint format ["%1", _message]}; case 2: {titleText[format ["%1",_message],"PLAIN"];}; case 3: {hint parseText format ["%1", _message]}; }; true } count _type; } else { switch (_type) do { case 0: {systemChat _message}; case 1: {hint format ["%1", _message]}; case 2: {titleText[format ["%1",_message],"PLAIN"];}; case 3: {hint parseText format ["%1", _message]}; }; }; In our drug dealer script, we use case 3. If your file already looks like this, please disregard the file edit. This is only for the broadcasting to the players when the dealer is moving, and when the dealer has found his place to deal from. I dont think I missed anything. Just make sure you re-pbo your life_server folder. IF YOU DON'T USE ALTIS AS YOUR MAP, PLEASE MAKE SURE TO CHANGE THE LOCATIONS.
  19. 1 point
    ok cool, but I would suggest not pushing out a server too fast. I can tell you from experience it's not great. you need to fix duping, bugs that come with scripts etc. in saying that I hope all goes well Good Luck! also, I can't seem to find your server.
  20. 1 point
    Hey Everyone, I made this dialogue for any store but I'm only showing this for the Clothing store. Just simply copy the code below and pas it into, Dialog \ clothing.hpp class Life_Clothing { idd = 3100; name= "Life_Clothing"; movingEnable = 1; enableSimulation = 1; //onLoad = "[] execVM 'core\client\keychain\init.sqf'"; class controlsBackground { class Background: Life_RscText { idc = -1; colorBackground[] = {0, 0, 0, 0.7}; x = 0.716562 * safezoneW + safezoneX; y = 0.016 * safezoneH + safezoneY; w = 0.273281 * safezoneW; h = 0.968 * safezoneH; }; class Background2: Life_RscText { idc = -1; colorBackground[] = {0, 0, 0, 0.7}; x = 0.716563 * safezoneW + safezoneX; y = 0.016 * safezoneH + safezoneY; w = 0.273281 * safezoneW; h = 0.968 * safezoneH; }; }; class controls { class Title: Life_RscStructuredText { idc = 1100; colorBackground[] = {0, 0, 0, 0}; text = "Clothing Shop"; //--- ToDo: Localize; x = 0.824844 * safezoneW + safezoneX; y = 0.016 * safezoneH + safezoneY; w = 0.0825 * safezoneW; h = 0.033 * safezoneH; }; class ClothingList: Life_RscListbox { onLBSelChanged = "[_this] call life_fnc_changeClothes;"; idc = 3101; x = 0.732031 * safezoneW + safezoneX; y = 0.06 * safezoneH + safezoneY; w = 0.242344 * safezoneW; h = 0.748 * safezoneH; }; class PriceTag: Life_RscStructuredText { idc = 3102; x = 0.778437 * safezoneW + safezoneX; y = 0.907 * safezoneH + safezoneY; w = 0.0567187 * safezoneW; h = 0.022 * safezoneH; }; class TotalPrice: Life_RscStructuredText { idc = 3106; x = 0.778437 * safezoneW + safezoneX; y = 0.874 * safezoneH + safezoneY; w = 0.0567187 * safezoneW; h = 0.022 * safezoneH; }; class FilterList: Life_RscCombo { onLBSelChanged = "_this call life_fnc_clothingFilter"; idc = 3105; x = 0.835156 * safezoneW + safezoneX; y = 0.819 * safezoneH + safezoneY; w = 0.139219 * safezoneW; h = 0.022 * safezoneH; tooltip = "Use this to change to backpack or vests or some other section."; //--- ToDo: Localize; }; class Total: Life_RscStructuredText { idc = 1103; text = "Total Price:"; //--- ToDo: Localize; x = 0.732031 * safezoneW + safezoneX; y = 0.874 * safezoneH + safezoneY; w = 0.0515625 * safezoneW; h = 0.022 * safezoneH; }; class ItemPrice: Life_RscStructuredText { idc = 1104; text = "Item Price:"; //--- ToDo: Localize; x = 0.732031 * safezoneW + safezoneX; y = 0.907 * safezoneH + safezoneY; w = 0.0515625 * safezoneW; h = 0.022 * safezoneH; }; class CloseButtonKey: Life_RscButtonMenu { onButtonClick = "closeDialog 0; [] call life_fnc_playerSkins;"; idc = -1; text = "Exit"; //--- ToDo: Localize; x = 0.732031 * safezoneW + safezoneX; y = 0.951 * safezoneH + safezoneY; w = 0.0670312 * safezoneW; h = 0.022 * safezoneH; }; class BuyButtonKey: Life_RscButtonMenu { onButtonClick = "[] call life_fnc_buyClothes;"; idc = -1; text = "Buy"; //--- ToDo: Localize; x = 0.9125 * safezoneW + safezoneX; y = 0.951 * safezoneH + safezoneY; w = 0.0670312 * safezoneW; h = 0.022 * safezoneH; }; class viewAngle: life_RscXSliderH { onSliderPosChanged = "[4,_this select 1] call life_fnc_s_onSliderChange;"; idc = 3107; color[] = {1, 1, 1, 0.45}; colorActive[] = {1, 1, 1, 0.65}; text = ""; x = 0.00499997 * safezoneW + safezoneX; y = 0.951 * safezoneH + safezoneY; w = 0.221719 * safezoneW; h = 0.033 * safezoneH; tooltip = "Use this to see your person and what they will look like with thier new snazzy clothes."; //--- ToDo: Localize; }; }; }; Then that's it, This is my first post on the release section so please be nice any issues let me know. This was tested on version 5.0 but I see no reason for it to not work on lower versions. I have also attached a Screenshot below.
  21. 1 point
    what file do i add this script to?
  22. 1 point
    No need for the all the noobs bit everyone gets stuck at doing something. And saying "noobs" is derogatory as I'm sure you didn't know how to do it at one point as I know I was.
  23. 1 point
    Good way to start dialog if you don't have the time or patience is to use https://github.com/kayler-renslow/arma-dialog-creator, any gui I have done on this website was using this and photoshop
  24. 1 point
    Creator: Not sure to be honest, let's just say ClassifiedReborn EDIT: Creator was actually Trailerpark/Repentz. @Repentz For Credit. Garage Menu Tutorial: 1. Replace your impound.hpp with: class Life_impound_menu { idd = 2800; name="life_vehicle_shop"; movingEnable = 0; enableSimulation = 1; onLoad = "ctrlShow [2330,false];"; class controlsBackground { class InventoryBack:Life_RscPicture { text = "textures\UI\back_garage.paa"; idc = -1; x = 0.0978125 * safezoneW + safezoneX; y = -0.05 * safezoneH + safezoneY; w = 0.825 * safezoneW; h = 1.1 * safezoneH; }; }; class controls { class CloseBtn : Life_RscButtonMenu { idc = -1; onButtonClick = "closeDialog 0;"; x = 0.29375 * safezoneW + safezoneX; y = 0.313 * safezoneH + safezoneY; w = 0.020625 * safezoneW; h = 0.022 * safezoneH; tooltip = "$STR_Global_Close"; colorBackground[] = {0,0,0,0}; colorBackgroundFocused[] = {0,0,0,0}; colorBackground2[] = {0,0,0,0}; color[] = {1,1,1,1}; colorFocused[] = {0,0,0,0}; color2[] = {0,0,0,0}; colorText[] = {1,1,1,1}; }; class RentCar : Life_RscButtonMenu { idc = -1; onButtonClick = "[] call life_fnc_unimpound;"; x = 0.295812 * safezoneW + safezoneX; y = 0.72275 * safezoneH + safezoneY; w = 0.134062 * safezoneW; h = 0.03245 * safezoneH; tooltip = "$STR_Global_Retrieve"; colorBackground[] = {0,0,0,0}; colorBackgroundFocused[] = {0,0,0,0}; colorBackground2[] = {0,0,0,0}; color[] = {1,1,1,1}; colorFocused[] = {0,0,0,0}; color2[] = {0,0,0,0}; colorText[] = {1,1,1,1}; }; class BuyCar : life_RscButtonMenu { idc = -1; onButtonClick = "[] call life_fnc_sellGarage; closeDialog 0;"; x = 0.445138 * safezoneW + safezoneX; y = 0.72275 * safezoneH + safezoneY; w = 0.134062 * safezoneW; h = 0.03245 * safezoneH; tooltip = "$STR_Global_Sell"; colorBackground[] = {0,0,0,0}; colorBackgroundFocused[] = {0,0,0,0}; colorBackground2[] = {0,0,0,0}; color[] = {1,1,1,1}; colorFocused[] = {0,0,0,0}; color2[] = {0,0,0,0}; colorText[] = {1,1,1,1}; }; class VehicleList : Life_RscListBox { idc = 2802; text = ""; sizeEx = 0.04; colorBackground[] = {0,0,0,0}; onLBSelChanged = "_this call life_fnc_garageLBChange;"; x = 0.298906 * safezoneW + safezoneX; y = 0.368 * safezoneH + safezoneY; w = 0.165 * safezoneW; h = 0.33 * safezoneH; }; class vehicleInfomationList : Life_RscStructuredText { idc = 2803; text = ""; sizeEx = 0.035; colorBackground[] = {0,0,0,0}; x = 0.479375 * safezoneW + safezoneX; y = 0.368 * safezoneH + safezoneY; w = 0.2475 * safezoneW; h = 0.33 * safezoneH; }; class MainHideText : Life_RscText { idc = 2811; text = "$STR_ANOTF_QueryGarage"; x = 0.298906 * safezoneW + safezoneX; y = 0.5 * safezoneH + safezoneY; w = 0.170156 * safezoneW; h = 0.022 * safezoneH; }; }; }; 2. Make a new UI folder in your textures, and put back_garage.paa in it. Spawn Menu: 1. Replace your spawnSelection.hpp with: class life_spawn_selection { idd = 38500; movingEnabled = 0; enableSimulation = 1; class controlsBackground { class BGha: Life_RscPicture { idc = 38531; text = "textures\UI\bg.jpg"; x = 0 * safezoneW + safezoneX; y = 0 * safezoneH + safezoneY; w = 1 * safezoneW; h = 1 * safezoneH; }; class BGMenu: Life_RscPicture { idc = 38531; text = "textures\UI\back_spawn.paa"; x = 0.190625 * safezoneW + safezoneX; y = 0.093 * safezoneH + safezoneY; w = 0.629062 * safezoneW; h = 0.792 * safezoneH; }; class MapView : Life_RscMapControl { idc = 38502; colorBackground[] = {0,0,0,0.7}; x = 0.37625 * safezoneW + safezoneX; y = 0.324 * safezoneH + safezoneY; w = 0.376406 * safezoneW; h = 0.418 * safezoneH; maxSatelliteAlpha = 0.75;//0.75; alphaFadeStartScale = 1.15;//0.15; alphaFadeEndScale = 1.29;//0.29; }; }; class controls { class SpawnPointList: Life_RscListNBox { idc = 38510; text = ""; sizeEx = 0.041; coloumns[] = {0,0,0.9}; drawSideArrows = 0; idcLeft = -1; idcRight = -1; rowHeight = 0.050; x = 0.247344 * safezoneW + safezoneX; y = 0.324 * safezoneH + safezoneY; w = 0.12375 * safezoneW; h = 0.374 * safezoneH; onLBSelChanged = "_this call life_fnc_spawnPointSelected;"; }; class spawnButton : Life_RscButtonMenu { idc = -1; type = 1; style = "0x02"; colorBackground[] = {0.03,0.55,0.95,1}; text = "Spawn"; onButtonClick = "[] call life_fnc_spawnConfirm"; x = 0.247344 * safezoneW + safezoneX; y = 0.709 * safezoneH + safezoneY; w = 0.12375 * safezoneW; h = 0.033 * safezoneH; colorBackgroundActive[] = {0.06,0.32,0.96,1}; colorBackgroundDisabled[] = {0.95,0.95,0.95,0}; offsetX = 0.003; offsetY = 0.003; offsetPressedX = 0.002; offsetPressedY = 0.002; colorShadow[] = {0,0,0,1}; colorBorder[] = {0,0,0,0}; borderSize = 0.008; }; /* class LastPos : Life_RscButtonMenu { idc = 1001; type = 1; style = "0x02"; colorBackground[] = {0,1,0,0.5}; text = "Letzte Position"; onButtonClick = "[] call life_fnc_spawnLast"; x = 0.247344 * safezoneW + safezoneX; y = 0.665 * safezoneH + safezoneY; w = 0.12375 * safezoneW; h = 0.033 * safezoneH; colorBackgroundActive[] = {0,1,0,0.7}; colorBackgroundDisabled[] = {0.95,0.95,0.95,0}; offsetX = 0.003; offsetY = 0.003; offsetPressedX = 0.002; offsetPressedY = 0.002; colorShadow[] = {0,0,0,1}; colorBorder[] = {0,0,0,0}; borderSize = 0.008; };*/ }; }; Then make (or if you have one) a UI folder and put back_spawn.paa in there. You want to find a random picture from google and put it in your UI folder and name it bg.jpg. If you don't have a picture I will provide you with one. I can't post links to images here, I will use a external source. bg.jpg Screenshots: (Thanks too @Dave650 for these)
  25. 0 points
    Written by IEthanHD You're not allowed to use this file without permission from the author!
×