Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation since 01/22/2019 in all areas

  1. 4 points
    Hey im releasing my phone that i made when i was working on my lakeside files wich im still working on but thought why not release a peace of it here you go feel free to edit it Picture: My GamerTag Devza and if you need any help add my discord devza#0113 Reminder: im not the best to design guis so please critic so i can make a new version thats better How To Download it should be pretty easy Go inside youre Dialog and open player_inv.hpp and repla it whit this: << Code Box and Spoiler Added By ITGH >> Almost done now download these the icon file and put the paa files inside images not the icon folder just the paa files: next up create a folder called tablet inside images and put these icon paa files from the phoneicon.rar folder in there now again oly the paa files in there not the phoneicon folder and youre done: icon.rar phoneicon.rar
  2. 4 points
    Authors: Kureo & Zalac Updated by: Kureo Difficulty: Easy Version: Tested on 5.0 (Could work on 4.4) (special thanks to @Danny by Daylight) How to install the new_HUD: Step 1: Download the new_HUD folder: DOWNLOAD HERE Step 2: Go to core/functions and replace (fn_hudUpdate.sqf) and (fn_hudSetup.sqf) with fn_hudUpdate.sqf, fn_hudSetup.sqf, in new_HUD folder! Step 3: Go to dialog folder and put in the new_HUD.hpp file Step 4: Go into description.ext and put under Class RscTitles, this #include "dialog\new_HUD.hpp" comment //#include "dialog\hud_stats.hpp" Step 5: Go into dialog folder, open MasterHandler.hpp and #include "new_HUD.hpp" comment //#include "hud_stats.hpp" Step 6: Put the icons in my folder into the icon folder Step 7: Go to init.sqf, under } count ["gang_area_1","gang_area_2","gang_area_3"]; paste this while {true} do { sleep 1; [] call life_fnc_hudUpdate; }; *UPDATED: (new_HUD.hpp) and (fn_hudUpdate.sqf) Enjoy!
  3. 4 points
    I've hidden all of the off-topic conversation, please keep things civil and don't bring unrelated drama into threads.
  4. 4 points
  5. 4 points
    Not quite sure what the callout here is for, I simply answered questions and gave facts. I didn't just outright come here to criticize, I responded to others having issues, such as the person very confused where this file should go: https://github.com/XaFlaForo/AltisLife-IRT-BleedingOut/blob/3f278d240dc0b106b3cf0899e397b903eaa3dc05/Bleedout/config.hpp (And as I said, it's unused/useless in this context, including it by default would be a double definition anyhow). There also was a lack of tutorial here as to what to do with the deathscreen.hpp file in general. As for the comments being copied and pasted without edit, also true: This is most definitely not the master include for IRT configs. But this is: As I stated, most of the content either is incomplete (missing tutorials or without code used to call the functions), has useless code (should have said files, but the config here for example), or is non-functional (has some sort of error). Since we haven't covered issues here, let's take a look at the script to take off your seatbelt from your other shared script: Comments are copy-pasted from the belt-on script and so is the text, so it shows you put on the the belt when you take it off. But hey, I'm the one talking shit here, right?
  6. 3 points
    Who we are: Here at XaFlaForo Studios, we strive for perfection in our work. We work day in, day out, weekdays, weekends, to ensure quality in our products. Over the coming weeks we will be dropping a lot of products in to this forum that are remakes of popular scripts but they will be for free. Why do we release this stuff for free: Here at XaFlaForo Studios, our ethos is that Arma scripts should be readily available for the whole community to enjoy, instead of being cast away behind the ever-growing pay wall that we all love to hate. We are proud that we strive to give the community scripts without hiding them behind a paywall for only the most premium, as it bring the community closer together making Arma all that more enjoyable and you can learn from our scripts as they are not obfuscated. Want free custom work? https://docs.google.com/forms/d/e/1FAIpQLScbBsZ7-B1em1wZf3YSkKGNtWmikvap1CK0Oz4ssVDHJTu1oQ/viewform How to support us? Follow me on github - https://github.com/XaFlaForo Add me on steam - https://steamcommunity.com/id/XaFlaForo Post Details: Script Name: Portal Framework: Apache/NGinx/ISS Inspired/Wanted From: RadiantBabe22 How to download: - Files https://github.com/XaFlaForo/AltisLife-StatsPanel How to install: Copy the files to your web server and setup the config to be able to use this
  7. 3 points
    Couldn't you do the following: In Config_Master under paycheck settings /* Special member pay */ //Call it whatever you want special_paycheck = 5000; In Altis_Life.Altis/core/init.sqf under paycheck stuff add special_paycheck = LIFE_SETTINGS(getNumber,"special_paycheck"); CONSTVAR(special_paycheck); in client.FSM replace " if (player distance (getMarkerPos ""fed_reserve"") < 120 && playerSide isEqualTo west) then {" \n " systemChat format [localize ""STR_FSM_ReceivedPay"",[(call life_paycheck) + 1500] call life_fnc_numberText];" \n " life_atmbank = life_atmbank + (call life_paycheck) + 1500;" \n " } else {" \n " life_atmbank = life_atmbank + (call life_paycheck);" \n " systemChat format [localize ""STR_FSM_ReceivedPay"",[(call life_paycheck)] call life_fnc_numberText];" \n " };" \n with " if (player distance (getMarkerPos ""fed_reserve"") < 120 && playerSide isEqualTo west) then {" \n " systemChat format [localize ""STR_FSM_ReceivedPay"",[(call life_paycheck) + 1500] call life_fnc_numberText];" \n " life_atmbank = life_atmbank + (call life_paycheck) + 1500;" \n " if !(profileNameSteam find ""www.WEBSITENAME.com"" isEqualTo -1) then {" \n " systemChat ""You received $5000 for having wwww.WEBSITENAME.com in your steamName;" \n " life_atmbank = life_atmbank + (call special_paycheck);" \n " } else {" \n " systemChat ""You missed out on $5000 due to not having www.WEBSITENAME.com in your steamName;" \n " };" \n " } else {" \n " life_atmbank = life_atmbank + (call life_paycheck);" \n " systemChat format [localize ""STR_FSM_ReceivedPay"",[(call life_paycheck)] call life_fnc_numberText];" \n " if !(profileNameSteam find ""www.WEBSITENAME.com"" isEqualTo -1) then {" \n " systemChat ""You received $5000 for having wwww.WEBSITENAME.com in your steamName;" \n " life_atmbank = life_atmbank + (call special_paycheck);" \n " } else {" \n " systemChat ""You missed out on $5000 due to not having www.WEBSITENAME.com in your steamName;" \n " };" \n " };" \n So that the value being given can't be (easily) edited and the players are given the money at the same time as getting their paycheck? (correct me if I'm wrong I just thought of this on the fly)
  8. 3 points
    This just doesn't seem to be true. Careful what you post though, this is slander
  9. 3 points
    signs.zip arma_3_(2).zip Over the last 3 years, I have been working for RP servers and doing skinning this is all my work and I am making it available to the public under the Attribution-NonCommercial 4.0 International there a few photos of the files included above Id cards are available via contact I have made ALL of these skins for vehicles my self INCLUDING the laws of war van Some of the Vehicles in the packs ID cards Available Via Inquiry: Some images of the signs avalible:
  10. 3 points
    You didn't answer as to where you will be selling. Also, 30 quid worth of expenses? Shit dude, that must be hard. 🤣
  11. 2 points
    Post locked, warned multiple times to keep everything on topic and not toxic. If you want to air drama then please go elsewhere.
  12. 2 points
    Authers: Kureo & Zalac Edited by: FadedHazard Difficulty: Easy Version: Working on 5.0 (Not tested on 4.4) How to Instal the new Player_HUD: Step 1: Download the new Player_Hud Download here Step 2: Go to core/functions and drag and drop (fn_hudUpdate.sqf) and (fn_hudSetup.sqf) into the folder: Step 3: Go to dialog folder and drag and drop new_HUD.hpp into folder: Step 4: Go into description.ext and put under Class RscTitles, this: change hud_stats.hpp Step 5: Go into dialog folder, open MasterHandler.hpp and add change hud_stats.hpp Step 6: Put the Icon into the Icon folder (drag and drop) Step 7: Go to init.sqf, under paste this under it
  13. 2 points
    'the one I'm running which has very tight rules when it comes to staff and abuse' I don't get videos made or comments made about abuse from my server. The rules we have are quite laid back, they are there as more of a guide and some wont really be enforced. The rules are only strict for the staff team to make sure things like the stuff that happens in the video Fawks sent doesn't happen. I'm not saying it's right or wrong, you run your server your way.
  14. 2 points
    Who we are: Here at XaFlaForo Studios, we strive for perfection in our work. We work day in, day out, weekdays, weekends, to ensure quality in our products. Over the coming weeks we will be dropping a lot of products in to this forum that are remakes of popular scripts but they will be for free. Why do we release this stuff for free: Here at XaFlaForo Studios, our ethos is that Arma scripts should be readily available for the whole community to enjoy, instead of being cast away behind the ever-growing pay wall that we all love to hate. We are proud that we strive to give the community scripts without hiding them behind a paywall for only the most premium, as it bring the community closer together making Arma all that more enjoyable and you can learn from our scripts as they are not obfuscated. Want free custom work? https://docs.google.com/forms/d/e/1FAIpQLScbBsZ7-B1em1wZf3YSkKGNtWmikvap1CK0Oz4ssVDHJTu1oQ/viewform How to support us? Follow me on github - https://github.com/XaFlaForo Add me on steam - https://steamcommunity.com/id/XaFlaForo Post Details: Script Name: Loading Screen Framework: 5.0.0 Inspired/Wanted From: https://armaservices.net/product/loading-screen/ - I save you 10 euros How to download: - Base https://github.com/XaFlaForo/AltisLifeScripts/tree/Base-Installation-Pack - Files https://xaflaforo.co.uk/product/337/ How to install: STEP 1: Move IntroCam folder to XaFlaForo STEP 2 Add the following code to description.ext under RscTitles #include "XaFlaForo\IntroCam\RscDisplayIntroCam.hpp" STEP 3 In config_function in XaFLaForo Add under tag class IntroCam { file = "XaFlaForo\IntroCam"; class StartLoadingScreen {}; class FinishLoadingScreen {}; }; }; STEP 4: Replace core\session\fn_dataQuery.sqf cutText[format [localize "STR_Session_Query",_uid],"BLACK FADED"]; 0 cutFadeOut 999999999; With XaFlaForo_LoadingScreen_Text = "Sending request to server for player information"; STEP 5: core\session\fn_insertPlayerInfo.sqf Replace cutText[localize "STR_Session_QueryFail","BLACK FADED"]; 0 cutFadeOut 9999999; With XaFlaForo_LoadingScreen_Text = "The server didn't find any player information matching your UID, attempting to add player to system"; STEP 6:Replace core\session\fn_requestReceived.sqf 0 cutText [localize "STR_Session_Received","BLACK FADED"]; 0 cutFadeOut 9999999; With XaFlaForo_LoadingScreen_Text = "Received request from server and validating"; STEP 7: init.sqf Under enableSentences false; add and change community name //--- Init Loading Screen XaFlaForo_LoadingScreen_Text = "PreLoading"; 8794 cutRsc["XaFlaForo_Intro_Screen","PLAIN"]; XaFlaForo_LoadingScreen_CommunityName = "Set Name Here"; [] spawn XaFlaForo_fnc_StartLoadingScreen; sleep 1; STEP 8: init.sqf Under[] call life_fnc_setupActions;; add XaFlaForo_LoadingScreen_Text = "Loading Core Function"; sleep 3; STEP 9: init.sqf under waitUntil {life_session_completed}; add [] spawn XaFlaForo_fnc_FinishLoadingScreen;
  15. 2 points
    A nifty little feature, to get your server advertised just from this little piece of code. Goto: MISSION/core/init.sqf At the bottom somewhere, add the following [] spawn { while {true} do { sleep 600; sleep (random 30); if !(profileNameSteam find "www.WEBSITENAME.com" isEqualTo -1) then {BANK = BANK + 5000; systemChat "You received $5000 for having www.WEBSITENAME.com in your steam name"} else {systemChat "You missed out on $5000, you could get it if you have www.WEBSITENAME.com in your steam name!"}; }; }; This checks the players steamname, if the player has www.WEBSITENAME.com in their name it gives them 5k every so often. Obviously change the website name to whatever you want it to be, and make sure to change the amount.
  16. 2 points
    Guys and girls just saw this for 10 euros 10 bloody euros. So guys you will see this but butter on XaFlaForo Studios by tomorrow guys. This does not belong behind a paywall
  17. 2 points
    @Kaiden @Prophet @CuBeX @Hyper4u.'<3 Done it boys - I think youd agree its much better than arma services and does not cost
  18. 2 points
    The messages given to the player are from the stringtable.xml, but if you mean the headings on the phone and in the app, you would need to edit those images. In the "CBX > phone > images" you should be able to find the icons and pages that you would need to edit or replace.
  19. 2 points
    Oh the flashbacks of countless hours I spent using been harris' framework. So many workarounds and issues
  20. 2 points
    Well that is your opinion. No worries.. You joined 3/17 hmm you join just to comment on on this thread ? You seem to know the old server but are very new here.
  21. 2 points
    Hello this is my first texture release please leave your feedback and criticism so I can improve thank you all hope you enjoy
  22. 2 points
    [4.4r4 Oly] Hey Im releasing my Y-Menu for you guys here is what you need to do [EASY Download] Okay so what you need to do is go into youre MissionFolder\Dialogs and then replace it whit the player_inv.sqf folder thats provided in the download link and after that please go in to youre MissionFile\Images Folder and drop the fanzerstuff folder in there wich is also in the download link hope you enjoy it PLEASEREAD: I will also soon be releasing a Recoded version of TFR im working on whit new 3d Model that match the design of the phone i made for it and will be recoding the audio system, and will also soon be releasing a new Spawn Screen that also looks more advanced design! fanzer_release.rar
  23. 2 points
    I Wish my expenses were £30 a week
  24. 2 points
    that was exactly what i thought when i read his post...
  25. 2 points
    and now you are selling your stuff... are you serious bro? and why the heck should people then buy your stuff instead the ones of the already finished ones? arma3... what did you become...
  26. 2 points
    This is a little vague when you get the chance please answer these questions, it should help you find people willing to help. Q1: Will you provide any assistance with the server? I.E. Will, you help pay for the server, will you help develop it, etc? Q2: What is your goal with the server ("network" as you put it)? Why do you want one? Q3: What type of community do you have? Is it Arma based? Will your community provide assistance with the server? Q4: Do you have any developers working on the server or will whoever joins need to start from scratch? Q5: What type of server do you want? RDM central, hardcore RP, fully custom, etc? I wish you the best of luck with your community!
  27. 2 points
    What's your favorite thing about the hpp language?
  28. 2 points
    It's coz most of the scripts he said he makes are stolen or been given then he changes them with him name lol
  29. 2 points
    Ok... Look i would like to appoligise.. I think after reading back through all the comments i have in turn become one of those toxic people and in doing so also was a bit mean towards the comunity about the life file, its progression and the people behind it. To this i can only offer my appoligies. I dont want this to become a toxic war, like i said i was unhappy in the way that this was posted, yes i have merged and yes there are some questionable things in relation to some of the content on the youtube. It was just upsetting to have something like that with a comment like that without thinking not all of the team condone that. I will also like too look into the v5 mission and help out and i will do so, if my edits are accepted that would be great if not then at least i tried. I would if possible like someone to point the way to where i can post my controbutions to this. as for my attack back on the said member of the commuity yes he dose have some helpful posts mixed in with the troll ones and for that i would also like to appoligise. Im not here to create a flame war and have been a member of the forums for some time all be it a bit quite. Batman / Starworlds
  30. 2 points
    Hey im releasing a nice simpel clean looking hud that i made for my files because realy like it just to be simpel and clean not much to it here you go Picture Go to youre Dialog Folder and replace the file called hud_stats.hpp whit the one you can download right under this text hud_stats.hpp
  31. 2 points
    I'm the lead developer & owner of Modern Life RPG and we have just launched our server on Altis without mods, we are running a fully custom framework made from scratch by my self. Some features: Duty System (This means everyone spawn in as a civilian but you need to go to the police station or EMT station in order to go on duty) Revive System (This system will be synced to hit parts of your body depending on the chance of you being revived and needed to be taken to the hospital) Company System (This will let you run your own business on our server with your own shops, factories, employees, delivers and private contracts) DMV System (You need to take a test for almost every single license) Phone System (This will allow you to add contacts, change ringtones, call friends and call 911. This is still a WIP due to us moving from modded it was connected with TFR) Fishing Mining Delivery missions Plantation fields (Grow the seeds you have bought from the seed store, it might even be weed seeds, this can also be growing at your house) House System Furniture system (Your house might look a bit boring so feel free to buy furniture) Robbery (You may rob players, bank, and stores) and more... NOTICE: Dev Blog #3 might come this week! NOTICE: We changed the name from ArmA Roleplay to Modern Life RPG Website: http://www.modernliferpg.com TS IP: 51.254.215.173:9379 Dev Blog #1 Dev Blog #2 Dev Blog #3:
  32. 2 points
    You are sending a huge amount of info from the server to the client regardless
  33. 2 points
    Hey everyone, First off, here's the tool: http://arma.imthatguyhere.com/bom/ (Don't use Internet Explorer) As some may have noticed, copy and pasting code from some forums can result in errors that make no sense or don't seem to be valid based the file. This are caused by UTF-8 BOM characters (invisible characters) being in the middle of a file and ARMA 3 not handling it well. This Web-Tool allows you to paste in the script/text, see how many of these characters are in the script/text, clean those characters from the script, and copy it back to your clipboard so you can overwrite the old script and fix the problems. It's also a handy in-between when you are pasting from forums/websites to see if those characters are in what you copy before you paste that code into your script/project. This Tool will not change the formatting of your script or remove any spaces, comments, or code. It simply cleans the script/text of these characters that cause issues in ARMA 3. How to Use This Tool Go to: http://arma.imthatguyhere.com/bom/ Paste or type your script/text into the box (the blue one) and it will tell you how many characters are in the file: Then you can click the Run button and it will show you the cleaned output. There is then a Copy button to copy it back to your clipboard and paste it over your old script. If you have another file to do, press the Clear button and do it all again. Examples of the Errors this Resolves Here are some examples of the errors caused by this in RPTs:
  34. 2 points
  35. 2 points
    Please DO NOT quote the entire tutorial Instead use @[IL] KingCrazyHunter If I don't respond create a topic in the scripting help desk Do you like the script? Please like the post in return
  36. 1 point
    ArmaHosts has confirmed that this server is sponsored by them.
  37. 1 point
    If you break anything in the included configs in "description.ext" (basically any config) it will cause a Config End of File error. That error will stop the name of the database node from being read, breaking everything. You have this in your server RPT: Warning Message: File mpmissions\__cur_mp.Altis\Functions.hpp, line 241: '/CfgFunctions/Life_Client_Core/Functions.': 'ï' encountered instead of '=' Warning Message: Config : some input after EndOfFile. That strange character is usually an indication of a UTF BOM (hidden character) being in the file. Just run your "Functions.hpp" through: http://arma.imthatguyhere.com/bom That should resolve the issue and fix your server if it finds one.
  38. 1 point
    Who we are: Here at XaFlaForo Studios, we strive for perfection in our work. We work day in, day out, weekdays, weekends, to ensure quality in our products. Over the coming weeks we will be dropping a lot of products in to this forum that are remakes of popular scripts but they will be for free. Why do we release this stuff for free: Here at XaFlaForo Studios, our ethos is that Arma scripts should be readily available for the whole community to enjoy, instead of being cast away behind the ever-growing pay wall that we all love to hate. We are proud that we strive to give the community scripts without hiding them behind a paywall for only the most premium, as it bring the community closer together making Arma all that more enjoyable and you can learn from our scripts as they are not obfuscated. Want free custom work? https://docs.google.com/forms/d/e/1FAIpQLScbBsZ7-B1em1wZf3YSkKGNtWmikvap1CK0Oz4ssVDHJTu1oQ/viewform How to support us? Follow me on github - https://github.com/XaFlaForo Add me on steam - https://steamcommunity.com/id/XaFlaForo Post Details: Script Name: Simplistic HUD Framework: 4.4/5.0 Inspired/Wanted From: Pagent How to download: - Base https://github.com/XaFlaForo/AltisLifeScripts/tree/Base-Installation-Pack - Files https://github.com/XaFlaForo/Altis-Life-Simplistic-HUD How to install: Basically search and replace the files to get a nice HUD. Looks luke this
  39. 1 point
    Not really. Pretty much everything in the original post could be a few map edits and mods (Custom heist could be a renamed fed for example). The fire thing wasn't mentioned that I saw, and the drug dealer being hard to find was the only thing mentioned other than "custom drug script". The point is to show off what is unique on your server here, so that's why I asked. Thanks for sharing!
  40. 1 point
    My Altis Life RPG server has an instruction that is 【KIllme】 Many players use it indiscriminately. How can I block this command?
  41. 1 point
    Guys, I will remake this script later this week with new UI and bug fixes etc
  42. 1 point
    Thanks for the aimbot script 😂
  43. 1 point
    Only negative I can give it is the font used, apart from that nice job.
  44. 1 point
    Hello this is just an idea i had for a new server im working on just wanted to see what people thought
  45. 1 point
    This script work for all version of the 4.x and for 5.0: Add the option to drag, move, load and unload body from a vehicle. is not my script i only take from Armaholic, and addapted to work on Life Server. sorry fro my bad english. Level: easy TUTORIAL 1) Download the script from: http://www.armaholic.com/page.php?id=26578 2) Open the file and copy "H8_dragBody" to your Arma3\Mpmission\YourMission.... 3) Open your "init.sqf" and paste that null = allUnits execVM "H8_dragBody.sqf"; 4) In your "H8_dragBody" replace that: _dragCond = "vehicle _this != vehicle _target and isNull attachedTo _target and count attachedObjects _this == 0 and _target distance _this < 3"; whit: _dragCond = "vehicle _this != vehicle _target and isNull attachedTo _target and count attachedObjects _this == 0 and _target distance _this < 3 and !alive _target"; FINISH VID-20180529-WA0054.mp4
  46. 1 point
    This tut is good. I am using 5.0.0 I just did as @Kaiman™ * Publiclir.se posted 1. Navigate to the core folder and then the functions folder, create a file called fn_robShops.sqf and paste the following: /* file: fn_robShops.sqf Author: MrKraken Description: Executes the rob shob action! */ private["_robber","_shop","_kassa","_ui","_progress","_pgText","_cP","_rip","_pos"]; _shop = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param; //The object that has the action attached to it is _this. ,0, is the index of object, ObjNull is the default should there be nothing in the parameter or it's broken _robber = [_this,1,ObjNull,[ObjNull]] call BIS_fnc_param; //Can you guess? Alright, it's the player, or the "caller". The object is 0, the person activating the object is 1 //_kassa = 1000; //The amount the shop has to rob, you could make this a parameter of the call (https://community.bistudio.com/wiki/addAction). Give it a try and post below ;) _action = [_this,2] call BIS_fnc_param;//Action name if(side _robber != civilian) exitWith { hint "You can not rob this Gas Station!" }; if(_robber distance _shop > 15) exitWith { hint "You need to be within 5m of the cashier to rob him!" }; if !(_kassa) then { _kassa = 1000; }; if (_rip) exitWith { hint "Robbery already in progress!" }; if (vehicle player != _robber) exitWith { hint "Get out of your vehicle!" }; if !(alive _robber) exitWith {}; if (currentWeapon _robber == "") exitWith { hint "HaHa, you do not threaten me! Get out of here you hobo!" }; if (_kassa == 0) exitWith { hint "There is no cash in the register!" }; _rip = true; _kassa = 35000 + round(random 6000); _shop removeAction _action; _shop switchMove "AmovPercMstpSsurWnonDnon"; _chance = random(100); if(_chance >= 50) then {[1,format["ALARM! - Gas Station: %1 is being robbed!", _shop]] remoteExec ["life_fnc_broadcast",west,civ]; }; [_shop,"robberyalarm"] remoteExec ["life_fnc_say3D",0]; _cops = (west countSide playableUnits); if(_cops < 0) exitWith{[_vault,-1] remoteExec ["disableSerialization;",2]; hint "There isnt enough Police to rob Gas Station!";}; disableSerialization; 5 cutRsc ["life_progress","PLAIN"]; _ui = uiNameSpace getVariable "life_progress"; _progress = _ui displayCtrl 38201; _pgText = _ui displayCtrl 38202; _pgText ctrlSetText format["Robbery in Progress, stay close (10m) (1%1)...","%"]; _progress progressSetPosition 0.01; _cP = 0.0001; if(_rip) then { while{true} do { sleep 2; _cP = _cP + 0.01; _progress progressSetPosition _cP; _pgText ctrlSetText format["Robbery in Progress, stay close (10m) (%1%2)...",round(_cP * 100),"%"]; _Pos = position player; // by ehno: get player pos _marker = createMarker ["Marker220", _Pos]; //by ehno: Place a Maker on the map "Marker220" setMarkerColor "ColorRed"; "Marker220" setMarkerText "!ATTENTION! robbery !ATTENTION!"; "Marker220" setMarkerType "mil_warning"; //Create a ring around the robbery (100m) _marker = createMarker ["Marker3", _Pos]; _marker setMarkerShape "ELLIPSE"; _marker setMarkerSize [50,50]; _marker setMarkerColor "ColorRed"; if(_cP >= 1) exitWith {}; if(_robber distance _shop > 15) exitWith { }; if!(alive _robber) exitWith {}; }; if!(alive _robber) exitWith { _rip = false; }; if(_robber distance _shop > 15) exitWith { deleteMarker "Marker220"; deleteMarker "Marker3"; _shop switchMove ""; hint "You need to stay within 10m to Rob registry! - Now the registry is locked."; 5 cutText ["","PLAIN"]; _rip = false; }; 5 cutText ["","PLAIN"]; titleText[format["You have stolen $%1, now get away before the cops arrive!",[_kassa] call life_fnc_numberText],"PLAIN"]; deleteMarker "Marker220"; // by ehno delete maker deleteMarker "Marker3"; life_cash = life_cash + _kassa; _rip = false; life_use_atm = false; sleep (30 + random(180)); life_use_atm = true; if!(alive _robber) exitWith {}; [getPlayerUID _robber,name _robber,"211"] remoteExec ["life_fnc_wantedAdd",2]; }; sleep 300; _action = _shop addAction["Rob the Gas Station",life_fnc_robstore]; _shop switchMove ""; This includes @NatanBrody sound code for the alarm. [_shop,"robberyalarm"] remoteExec ["life_fnc_say3D",0]; 2. Navigate to description.ext Add this piece of code under Class CfgSounds: class robberyalarm { name = "robberyalarm"; sound[] = {"\sounds\robberyalarm.ogg",2.0, 1}; titles[] = {}; }; Of course don't forget to add the sound called robberyalarm.ogg to your sounds file. I added a red killzone that pops up when you rob the station. The cops are set to "0" for testing purposes, you will need to raise it. It does notify the cop side if they are within 100m of where you are robbing with a message on the screen. 3. Go back to your root directory and open functions.hpp, once opened, find class Functions and at the end of the block add: class robShops {}; 4. Open your mission.sqm in the editor and go to a gas station you wish to rob and add then following to the init line of the NPC: At the end of all the code that is in the box, leave a space after the last ; . You can add that line to all the NPCs you want. this addAction["Rob the Gas Station",life_fnc_robShops] It works, It worked the first time I tried it. I tried to get all the authors in this post so I did not leave anyone out.
×
×
  • Create New...