Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation since 05/16/2019 in all areas

  1. 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!
  2. 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.
  3. 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
  4. 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.
  5. 1 point
    La date de création du projet Le serveur ShadeLife a vu le jour au mois de décembre 2018 par BarneyR & Jay77, cherchant a créé un serveur unique dans son genre, proposant fraîcheur et exclusivité pour que tout le monde y trouve son bonheur. Nous sommes ouvert depuis peu en bêta publics limités à 64 slots. (nous rejoindre). Ressources et traitements : Sur notre île vous trouverez tout sorte de ressources (légale et illégale) pour fabriquer tout ce que dont vous rêvez un tutoriel est disponible sur notre forum. Faut garder à l'esprit que nous avons fais exprès de mettre du multi-process pour pousser le Role-Play des entreprises chose peu faite sur les autres îles. Services publiques : Fini les slots Blufor et indépendant maintenant tout son passe en slots civils, pour prendre votre service que vous soyez pompier ou gendarme vous devez vous rendre à votre lieu de travail et commencer votre service comme toutes les entreprises sur notre île. Cette option permet d'éviter le Meta-Gaming mais aussi permet de donner beaucoup plus de liberté à nos joueurs. Interactions entre joueurs : Pour augmenter les interactions entre nos joueurs nous avons opté pour un système P2P (Player 2 Player), toutes les actions peuvent s'effectuer sans l'intervention de "Dieu" ou d'autres manipulation externe tout est gérer par les joueurs eux mêmes. Un mapping exclusive : Nous avons exploité 85% de l’île pour que cela soit le plus agréable possible pour toutes vos actions Role-Play, des différents mappings ont était réalisé pour donner toutes les possibilités créatives a nos joueurs (maisons dans la foret, entreprises, terrain de karting, terrain de paintball ...) L'histoire de notre île : Après plusieurs années d'investigations le gouvernement français décide d'envoyer un micro gouvernement pour reprendre l’économie de l’île en main mais aussi la situation politique ... Nos scripts déployés sur le serveur : - Ressources inédite, - Bourse dynamique (possibilité de passer en négative), - Multi-process, - Système de petites annonces, - Système DarkWeb, - Système de plaque d'immatriculation 3D (prochainement), - Système de traitement ambulant (prochainement), - Système de location de maison/appartement, - Système d’aménagement de propriété (prochainement), - Système d'appel téléphonique, - Système de consommation de drogue et d'alcool, - Système administratifs via panel web (prochainement) ... Forum : https://www.arma.shadearmy.fr/index.php Nous rejoindre : https://www.arma.shadearmy.fr/index.php?threads/nous-rejoindre.31/#post-162 Twitter : https://twitter.com/ShadeLifeA3 Nous souhaitons la bienvenu a tous nos futurs joueurs, le staff reste a votre écoute pour toutes éventuelles questions mais aussi de suggestion pour améliorer le serveur mais aussi votre expérience de jeu chez nous.
  6. 1 point
  7. 1 point
    You were helped in Discord. You were missing a "};" before the zipties class in "functions.hpp".
  8. 1 point
    Putting this in handle damage will prevent people from being killed from being run over and will also tell them who just ran them over. if(vehicle _source isKindOf "LandVehicle") then { if(_source != _unit AND {alive _unit} AND {isPlayer _source}) then { _damage = 0.001; [0,format["%1 just ran over %2!", name _source, name _unit]] remoteExec ["life_fnc_broadcast",0]; }; };
  9. 1 point
    Rewrite the script. If you die like that as it is, it actually throws an error to your RPT.
  10. 1 point
  11. 1 point
  12. 1 point
    Try this instead: https://sqfbin.com/setehapayemabolacugu The one I sent only works for the vItem version.
  13. 1 point
    I just realized this tutorial doesn't even cover licenses, so yeah, you wouldn't be able too unless you modified the files around that. Here's the latest "fn_buyLicense.sqf" modified to work and do this: https://sqfbin.com/zecocoqenisogasogebe (Untested, so let me know any errors you get).
  14. 1 point
  15. 1 point
    I know this has probably already been done, but I decided to optimize it and post it in tutorials. Let's get started, let's navigate to core/functions/fn_playerSkins.sqf and find the faction you wish to add invisible backpacks too, in this case, "west" (Police). Then add this code to the case: It should look like this: Now you're probably thinking, who would want this as a tutorial, no ones that stupid, but from what I've seen I think it's safe to say people don't know how to do this.
  16. 1 point
  17. 1 point
    By: CubeX Designs *FOR VERSION 5.0* Difficulty: Medium 1. Preview 2. Installation 3. FAQ 1| Preview: 2| Installation: 1: Go to your description.ext and find this line: #include "config\Config_Master.hpp" Below that line add this code: #include "CBX\CBXDialogHandler.hpp" 2: Go to your CfgRemoteExec.hpp and find this line: jip = 0; Below that line add this code: #include "CBX\CBXCfgRemoteExec.hpp" 3: Copy all of the files from core\pmenu in our zip file and replace them with the ones in yourmission\core\pmenu. 4: Copy the folder CBX to your mission root folder. 5: Copy the folder @CBX to your arma 3 server root folder. 6. Go to your life_server.pbo and edit the file functions.sqf. Between the function :"TON_fnc_cell_emsrequest" to the function "TON_fnc_cell_adminmsgall" replace the content with this : TON_fnc_cell_emsrequest = compileFinal " private [""_msg"",""_to""]; ctrlShow[2404,false]; _msg = ctrlText 2400; _length = count (toArray(_msg)); if (_length > 400) exitWith {hint localize ""STR_CELLMSG_LIMITEXCEEDED"";ctrlShow[2404,true];}; _to = ""EMS Units""; if (_msg isEqualTo """") exitWith {hint localize ""STR_CELLMSG_EnterMSG"";ctrlShow[2404,true];}; [_msg,name player,5,mapGridPosition player,player] remoteExecCall [""TON_fnc_clientMessage"",independent]; [] call life_fnc_cellphone; hint format [localize ""STR_CELLMSG_ToEMS"",_to,_msg]; ctrlShow[2404,true]; "; //To One Person TON_fnc_cell_textmsg = compileFinal " private [""_msg"",""_to""]; ctrlShow[2401,false]; _msg = ctrlText 2400; _length = count (toArray(_msg)); if (_length > 400) exitWith {hint localize ""STR_CELLMSG_LIMITEXCEEDED"";ctrlShow[2401,true];}; if (lbCurSel 2100 isEqualTo -1) exitWith {hint localize ""STR_CELLMSG_SelectPerson""; ctrlShow[2401,true];}; _to = call compile format [""%1"",(lbData[2100,(lbCurSel 2100)])]; if (isNull _to) exitWith {ctrlShow[2401,true];}; if (isNil ""_to"") exitWith {ctrlShow[2401,true];}; if (_msg isEqualTo """") exitWith {hint localize ""STR_CELLMSG_EnterMSG"";ctrlShow[2401,true];}; [_msg,name player,0] remoteExecCall [""TON_fnc_clientMessage"",_to]; [] call life_fnc_cellphone; hint format [localize ""STR_CELLMSG_ToPerson"",name _to,_msg]; ctrlShow[2401,true]; "; //To All Cops TON_fnc_cell_textcop = compileFinal " private [""_msg"",""_to""]; ctrlShow[2402,false]; _msg = ctrlText 2400; _to = ""The Police""; if (_msg isEqualTo """") exitWith {hint localize ""STR_CELLMSG_EnterMSG"";ctrlShow[2402,true];}; _length = count (toArray(_msg)); if (_length > 400) exitWith {hint localize ""STR_CELLMSG_LIMITEXCEEDED"";ctrlShow[2402,true];}; [_msg,name player,1,mapGridPosition player,player] remoteExecCall [""TON_fnc_clientMessage"",-2]; [] call life_fnc_cellphone; hint format [localize ""STR_CELLMSG_ToPerson"",_to,_msg]; ctrlShow[2402,true]; "; //To All Admins TON_fnc_cell_textadmin = compileFinal " private [""_msg"",""_to"",""_from""]; ctrlShow[2403,false]; _msg = ctrlText 2400; _to = ""The Admins""; if (_msg isEqualTo """") exitWith {hint localize ""STR_CELLMSG_EnterMSG"";ctrlShow[2403,true];}; _length = count (toArray(_msg)); if (_length > 400) exitWith {hint localize ""STR_CELLMSG_LIMITEXCEEDED"";ctrlShow[2403,true];}; [_msg,name player,2,mapGridPosition player,player] remoteExecCall [""TON_fnc_clientMessage"",-2]; [] call life_fnc_cellphone; hint format [localize ""STR_CELLMSG_ToPerson"",_to,_msg]; ctrlShow[2403,true]; "; //Admin To One Person TON_fnc_cell_adminmsg = compileFinal " if (isServer) exitWith {}; if ((call life_adminlevel) < 1) exitWith {hint localize ""STR_CELLMSG_NoAdmin"";}; private [""_msg"",""_to""]; ctrlShow[2407,false]; _msg = ctrlText 2400; _to = call compile format [""%1"",(lbData[2100,(lbCurSel 2100)])]; if (isNull _to) exitWith {ctrlShow[2407,true];}; if (isNil ""_to"") exitWith {ctrlShow[2407,true];}; if (_msg isEqualTo """") exitWith {hint localize ""STR_CELLMSG_EnterMSG"";ctrlShow[2407,true];}; [_msg,name player,3] remoteExecCall [""TON_fnc_clientMessage"",_to]; [] call life_fnc_cellphone; hint format [localize ""STR_CELLMSG_AdminToPerson"",name _to,_msg]; ctrlShow[2407,true]; "; TON_fnc_cell_adminmsgall = compileFinal " if (isServer) exitWith {}; if ((call life_adminlevel) < 1) exitWith {hint localize ""STR_CELLMSG_NoAdmin"";}; private [""_msg"",""_from""]; ctrlShow[2406,false]; _msg = ctrlText 2400; if (_msg isEqualTo """") exitWith {hint localize ""STR_CELLMSG_EnterMSG"";ctrlShow[2406,true];}; [_msg,name player,4] remoteExecCall [""TON_fnc_clientMessage"",-2]; [] call life_fnc_cellphone; hint format [localize ""STR_CELLMSG_AdminToAll"",_msg]; ctrlShow[2406,true]; "; 7: Go to core\functions\fn_keyHandler.sqf and find this line: case 21: { Below that you will see this line: [] call life_fnc_p_openMenu; Replace this line with this line: [] spawn CBX_fnc_openPhone; 8: To make it work you have to set it as a mod in your server startup parameters. Like that : “[email protected];@life_server;heli;jets;kart;mark;@CBX” FINAL: DOWNLOAD ZIP (CLICK) PHONE WALLPAPER PSD FILE ICONS PSD FILE (CLICK) Credit: Coded By Beast, Designed By CubeX For AltisLifeRPG 3| FAQ: Q: Who made this amazing thing? xD. A: CubeX Designs. Q: Is It Free?. A: Like Dhaa?!. Q: Can I change stuff and edit the PSD file?. A: Yes! you can change everything you want In the PSD file. Q: Why the wallpaper psd file size is so big?. A: because the Images size I used is 4K and the size I created the wallpaper is 2048x2048 sorry xD. Q: Will you add more screens (menus) to the phone? (like admin menu and wanted). A: Maybe but we do not guarantee anything. Please Let Us Know If You Have Any Problems With The Phone, We Will Update It For Fixes. Icons made by: Gregor Cresnar Freepik Plainicon Yannick Egor Rumyantsev from www.flaticon.com p.s- please do not share this post in other forums without my permission. thanks
  18. 1 point
    This tutorial add one terrorist item: Speed Bomb. What it do? - It do terrorims lol - You plant the bomb on one vehicle. - When the vehicle goes up 70 Km/h the bomb is activated. - It blows up if the vehicle goes down 50 Km/h MUHUA MUHUA MUHUA (evil laughs) - It tells you when the bomb is activated - It tells the victim that he have a bomb and he can't goes down 50 km/h - It tells you when the bomb explodes It can't be defused. It kills. It is the best for terrorism It is the nightmare of the cops You could check it: So let's go to the tutorial. Author: Fuzz Made in: 2014 AltisLife cache restore by me and changed it to run with 4.4 by me and some others small changes. Fell free to change all that you need. 1- FIRST STEP: Create the vItem: speedbomb 1.1) Open Config_vItems.hpp and add: class speedbomb { variable = "speedbomb"; displayName = "STR_Item_SpeedBomb"; weight = 10; buyPrice = 100000; sellPrice = 90000; illegal = true; edible = -1; icon = "icons\ico_speedbomb.paa"; }; Inside class VirtualItems and add the icon: ico_speedbomb.paa inside icons folder. 1.2) Add the item to one seller: 1.2.1) Rebel Shop: class rebel { name = "STR_Shops_Rebel"; side = "civ"; license = "rebel"; level[] = { "", "", -1, "" }; items[] = { "waterBottle", "rabbit", "apple", "redgull", "tbacon", "lockpick", "pickaxe", "toolkit", "fuelFull", "peach", "boltcutter", "blastingcharge", "speedbomb" }; }; Inside class VirtualShops OR (could be both too, you choose) 1.2.2) Create a new one (Terrorist Shop): class terrorist { name = "STR_Shops_Terrorist"; side = "civ"; license = "terrorist"; level[] = { "", "", -1, "" }; items[] = { "speedbomb" }; }; Inside class VirtualShops and add in the stringtable.xml : <Key ID="STR_Shops_Terrorist"> <Original>Terrorist Shop</Original> <Czech>Teroristický Obchod</Czech> <Spanish>Tienda de Terrorista</Spanish> <Russian>Террорист магазин</Russian> <German>Selbstmord-Shop</German> <Italian>Negozio Terrorist</Italian> <French>Marché du Terrorisme</French> <Portuguese>Loja Terrorista</Portuguese> <Polish>Terrorist sklepu</Polish> </Key> 1.3) Set up the name that will show on Y menu and shop: Add in: stringtable.xml <Key ID="STR_Item_SpeedBomb"> <Original>Speed Bomb</Original> <Czech>Rychlost Bomb</Czech> <Spanish>Bomba de velocidad</Spanish> <Russian>Скорость бомба</Russian> <German>Geschwindigkeit Bombe</German> <French>Speed Bomb</French> <Italian>Velocità Bomb</Italian> <Portuguese>Bomba de Velocidade</Portuguese> <Polish>szybkość Bomb</Polish> </Key> 2- SECOND STEP: Create the function file. Create the file: fn_speedBomb.sqf inside core\items : /* File: fn_speedBomb.sqf Author: Fuzz Description: Attaches a speed bomb to a vehicle. */ private["_unit"]; _unit = cursorTarget; if(!license_civ_rebel) exitWith {hint "You need Rebel Training to use it."}; // OPTIONAL - If you want license to plant the bomb. if((!(_unit isKindOf "LandVehicle"))&&(!(_unit getVariable ["restrained",false]))) exitWith {hint "You cannot add a speed bomb unit to this."}; if(player distance _unit > 7) exitWith {hint "You need to be within 7 feet!"}; if(!([false,"speedbomb",1] call life_fnc_handleInv)) exitWith {}; closeDialog 0; life_action_inUse = true; player playMove "AinvPknlMstpSnonWnonDnon_medic_1"; sleep 1.5; waitUntil {animationState player != "ainvpknlmstpsnonwnondnon_medic_1"}; life_action_inUse = false; if(player distance _unit > 7) exitWith {titleText["You are not in range!","PLAIN"];}; titleText["You have attached an armed speed bomb to this vehicle.","PLAIN"]; //life_experience = life_experience + 25; [_unit] spawn { _veh = _this select 0; waitUntil {(speed _veh) > 70}; // 70 - Speed for activate the bomb. You can change if you want ;) [[_veh, "caralarm",10],"life_fnc_playSound",true,false] spawn BIS_fnc_MP; hint "A speed bomb you planted on a vehicle has just become active!"; { [[2,"A speed bomb has been activated on this vehicle and will detonate when your speed drops below 50km/h!"],"life_fnc_broadcast",_x,false] spawn BIS_fnc_MP; } foreach (crew _veh); waitUntil {(speed _veh) < 50}; // 50 - Speed that the bomb will explode. You change it what you want. Don't forget to change the text above too. serv_killed = [player,"1090"]; publicVariableServer "serv_killed"; _test = "Bo_Mk82" createVehicle [0,0,9999]; _test setPos (getPos _veh); _test setVelocity [100,0,0]; hint "A speed bomb you planted on a vehicle has DETONATED!"; }; 3 - THIRD STEP: Set the explosion sound Add in description.ext inside class CfgSounds : class bombarm { name = "bombarm"; sound[] = {"\sounds\bombarm.ogg", 1.0, 1}; titles[] = {}; }; And add the sound file: bombarm.ogg inside sounds folder. 4 - FOURTH STEP - Add the action function to plant the bomb. Open core\pmenu\fn_useItem.sqf and add: case (_item isEqualTo "speedbomb"): { [] spawn life_fnc_speedBomb; }; Inside: switch (true) do and above: Like as: switch (true) do { case (_item in ["waterBottle","coffee","redgull"]): { ... }; ... case (_item in ["apple","rabbit","salema","ornate","mackerel","tuna","mullet","catshark","turtle_soup","hen","rooster","sheep","goat","donuts","tbacon","peach"]): { if (!(M_CONFIG(getNumber,"VirtualItems",_item,"edible") isEqualTo -1)) then { if ([false,_item,1] call life_fnc_handleInv) then { _val = M_CONFIG(getNumber,"VirtualItems",_item,"edible"); _sum = life_hunger + _val; switch (true) do { case (_val < 0 && _sum < 1): {life_hunger = 5;}; //This adds the ability to set the entry edible to a negative value and decrease the hunger without death case (_sum > 100): {life_hunger = 100;}; default {life_hunger = _sum;}; }; }; }; }; case (_item isEqualTo "speedbomb"): { [] spawn life_fnc_speedBomb; }; default { hint localize "STR_ISTR_NotUsable"; }; }; 5 - FIFTH AND LAST STEP: Open the file Functions.hpp and add: class speedBomb {}; Inside: class Items like as: class Items { file = "core\items"; class blastingCharge {}; class boltcutter {}; class defuseKit {}; class flashbang {}; class jerrycanRefuel {}; class jerryRefuel {}; class lockpick {}; class placestorage {}; class spikeStrip {}; class storageBox {}; class speedBomb {}; }; I think its all! Sorry if i missed something, i'm very new, so just say that is missing something and ill look Have fun!!! Files: ico_speedbomb.paa bombarm.ogg
  19. 1 point
    //O Key case 24: { if(_shift) then { switch (player getVariable["life_fadeSound",0]) do { case 0: {hintSilent "Volume ambientale diminuito del 90%"; 1 fadeSound 0.1; player setVariable ["life_fadeSound", 10]; life_fadeSound = true; }; case 10: {hintSilent "Volume ambientale diminuito del 70%"; 1 fadeSound 0.4; player setVariable ["life_fadeSound", 40]; life_fadeSound = true; }; case 40: {hintSilent "Volume ambientale diminuito del 30%"; 1 fadeSound 0.7; player setVariable ["life_fadeSound", 70]; life_fadeSound = true; }; case 70: {hintSilent "Volume ripristinato!"; 1 fadeSound 1; player setVariable ["life_fadeSound", 0]; life_fadeSound = false; }; }; call life_fnc_hudUpdate; }; };
  20. 1 point
    First you navigate to AltisLife.Altis\core\actions and make a file called fn_takeOrgans.sqf and paste this in: /* file: fn_takeOrgans.sqf author: [midgetgrimm] - www.grimmlife.com Updated and improved upon by: Edward - Edward#2003 */ private["_unit"]; _unit = cursorTarget; //Playerchecks if(isNull _unit) exitWith {}; //if unit is null, than NO if((_unit getVariable ["missingOrgan",FALSE])) exitWith {};//must not be missing organ already if((player getVariable ["hasOrgan",FALSE])) exitWith {};//thief must not have already robbed an organ within last 5 mintues if((animationState _unit != "Incapacitated")) exitWith {};//victim must be knocked out if(player == _unit) exitWith {};//if the thief is the cursor target(dafuq) than NO if(!isPlayer _unit) exitWith {};//iff the cursor target is not a player than NO if(life_inv_scalpel < 1) exitWith {hint "You need scalpels!"}; if(life_inv_kidney >= 2) exitWith {hint "You can't possibly need that many organs!"};//if you already have 2 kidneys, then go sell them already, no stockpiling if(!([true,"kidney",1] call life_fnc_handleInv)) exitWith {hint "You don't have room to store any organs!"};//if no room for kidney, you cannot take their kidney, duh, waste not want not life_action_inUse = true;//sets action to true as to prevent kidney spammming!!!!!!!! player setVariable["hasOrgan",true,true];//sets variable on thief, so as not to consistently take organs, set to 5 minute cooldown if (animationState player != "AinvPknlMstpSnonWnonDnon_medic_1") then { [player,"AinvPknlMstpSnonWnonDnon_medic_1"] remoteExecCall ["life_fnc_animSync",RCLIENT]; player playMoveNow "AinvPknlMstpSnonWnonDnon_medic_1"; }; uiSleep 3;//length of action, had weird results with any higher - obviously not realistic, but whatever _unit setVariable["missingOrgan",true,true];//sets the missing organ variable so effects can take place life_action_inUse = false;//once variables are set, and actions stop, then you can use scrolly wheely [player] remoteExec ["life_fnc_hasOrgan", _unit];//this then calls the fn_hasOrgan.sqf on the thief [false,"scalpel",1] call life_fnc_handleInv; Second navigate to AltisLife.Altis\core\civilian and make a filled called fn_hasOrgan.sqf and paste this in /* file: fn_hasOrgan.sqf author: [midgetgrimm] - www.grimmlife.com Updated and improved upon by: Edward - Edward#2003 */ private["_organThief"]; _organThief = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param; if(isNull _organThief) exitWith {}; //if not the thief get bent [1, format["%1 has cut out a kidney from %2.",name _organThief, name player]] remoteExec ["life_fnc_broadcast", civilian]; [_organThief,"kidney",1] call life_fnc_handleInv;//put stolen kidney into inventory of thief //Add to Wanted list if (life_HC_isActive) then { [getPlayerUID player, player getVariable ["realname",name player],"919"] remoteExecCall ["HC_fnc_wantedAdd",HC_Life]; } else { [getPlayerUID player, player getVariable ["realname",name player],"919"] remoteExecCall ["life_fnc_wantedAdd",RSERV]; }; uiSleep 300;//no more organ theft for at least 5 minutes, so they cant just do it over and over, can do whatever time you want _organThief setVariable["hasOrgan",false,true];//allow them to be able to take organs again- setting a variable Third navigate to AltisLife.Altis\ and open Functions.hpp and add these in the respective areas: Under class Actions { add class takeOrgans {}; And under class Civilian { class hasOrgan {} Fourth navigate to AltisLife.Altis\core and open fn_setupActions.sqf and under case civilian: { add // take them organs life_actions = life_actions + [player addAction["Harvest Organs",life_fnc_takeOrgans,"",0,false,false,"",'!isNull cursorTarget && cursorTarget isKindOf "Man" && (isPlayer cursorTarget) && alive cursorTarget && cursorTarget distance player < 3.5 && !(cursorTarget getVariable ["missingOrgan",FALSE]) && !(player getVariable "Escorting") && !(player getVariable "hasOrgan") && !(player getVariable "transporting") && animationState cursorTarget == "Incapacitated"']]; Fifth navigate to AltisLife.Altis\ and open initPlayerLocal.sqf and this code under [] execVM "core\init.sqf"; [] spawn { while{true} do { waitUntil {(player getVariable "missingOrgan")}; life_max_health = .70; while{(player getVariable "missingOrgan")} do { life_thirst = 70; life_hunger = 70; if(damage player < (1 - life_max_health)) then {player setDamage (1 - life_max_health);}; "dynamicBlur" ppEffectEnable true; "dynamicBlur" ppEffectAdjust [2]; "dynamicBlur" ppEffectCommit 1; sleep 5; }; "dynamicBlur" ppEffectEnable false; life_max_health = 1; }; }; Sixth navigate to AltisLife.Altis\core\pmenu and open fn_useItem.sqf where you add this code under switch (true) do case (_item == "kidney"): { if(([false,_item,1] call life_fnc_handleInv)) then { player setVariable["missingOrgan",false,true]; life_thirst = 100; life_hunger = 100; player setFatigue .5; }; }; Seventh navigate to AltisLife.Altis\core and open init.sqf and add and add this below the others player setVariable["missingOrgan",false,true]; player setVariable["hasOrgan",false,true]; Next navigate to AltisLife.Altis\core\medical and open fn_onPlayerKilled.sqf and add this below the others _unit setVariable["missingOrgan",false,true]; _unit setVariable["hasOrgan",false,true]; Next open fn_onPlayerRespawn.sqf and add this below the others _unit setVariable["missingOrgan",false,true]; _unit setVariable["hasOrgan",false,true]; Eighth navigate to AltisLife.Altis\config and open Config_vItems.hpp and add these two to class VirtualItems class kidney { variable = "kidney"; displayName = "STR_Item_Kidney"; weight = 15; buyPrice = 75000; sellPrice = 50000; illegal = true; edible = -1; icon = ""; }; class scalpel { variable = "scalpel"; displayName = "STR_Item_Scalpel"; weight = 5; buyPrice = 10000; sellPrice = 5000; illegal = true; edible = -1; icon = ""; }; Ninth add these two to the stringtable.xml in AltisLife.Altis\ <Key ID="STR_Item_Kidney"> <Original>Kidney</Original> </Key> <Key ID="STR_Item_Scalpel"> <Original>Scalpel</Original> </Key> Tenth add the kidney to any virtual shop, or make your own shop “kidney” Eleventh navigate to AltisLife.Altis\ and open CfgRemoteExec.hpp and under /* Client only functions */ add F(life_fnc_hasOrgan,CLIENT) NOTE: This code is really old, and from the previous altisliferpg.com I just converted it to make it work with 5.0 a while back, I just added a few things to make it more realistic But this script is definitely not up to the coding standards of today
  21. 1 point
    Still working on it but will be sharing this soon. But feel free to use on your server. This uses the-programmer scripts Interpol , License Plates and my custom Warrant Script. But can easily be changed to work on your server.
  22. 1 point
    Authors: Tonic (Didn't change enough within the files to put mine or anyone else's name as an author) Difficulty: Easy Version: Tested on 5.0 (Could work on 4.4) (Thank you @TaskForceTactical for the idea of this script) Description: Similar to the fed but instead of spawning gold bars when successful this will spawn randomized weapons and gear in a crate. NOTE: To the ungrateful copy paste kids who thinks it's cool to steal credit or try to sell the scripts me or any of my friends created for you guys, if it continues I will no longer help anyone or post scripts to for the community, the only reason why this was released was because it's a small rewrite of Tonic's files. MISSION EDITS: STEP 1: Find a place for your armory on the map and place a marker and name set federal_armory as the variable name. Now you will need to place a vault, a"CargoNet_01_box_F" works perfectly set the variable name to fed_armory and don't forget to set allowDamage to false, a vaulthouse, I use "Land_Research_house_V1_F" for example, and a dome big or small depends on how you want it. To make it easier I've used this compound within the top right area that's apart of the map all I did was place a vault: Step 2: There was a simpler way to do this but I didn't realize until after I made this both ways work the same so go into your fn_useItem.sqf replace "case (_item isEqualTo "blastingcharge"):" with: Step 3: Go into your fn_useItem.sqf replace "case (_item isEqualTo "boltcytter"):" with: Step 4: You will need to configure this so it's the correct coords to the vault & vaulthouse. Go into core >> items and create the file fn_blastingChargeArmory.sqf and paste this in: Step 5: You will need to configure this also with the same coords as you did in fn_blastingChargeArmory.sqf, create a new file in core >> items called fn_boltcutterarmory.sqf and paste this: Step 6: go into core >> civilian and create a file called fn_demoChargeTimerArmory.sqf and paste this: Step 7: Open you Functions.hpp and under "class Items {" add Under "class Civilian {" add Step 7.5: heres what mine looks like: Step 8: Open your CfgRemoteExec.hpp and add LIFE_SERVER EDITS: Step 1: This step locks your doors and prevents exploiting it will need configuring with the same coordinates as Step 5 and Step 4 of the mission edits. Open your init.sqf and add this above "/* Setup the federal reserve building(s) */": Step 2: Go into Functions >> Sytems and create a new file called "fn_handleBlastingChargeArmory.sqf" this is where all the magic happens you're free to edit whatever you paste this: Step 3: Last but not last open your config.cpp and add this under "class Systems {" under "class TON_System {" Step 3.5: here is what yours should look like
  23. 1 point
    if ((count (crew vehicle player))> 1) exitWith { hint "You can't open the trunk while a player is in the vehicle with you!"; true breakOut "main"; };
  24. 1 point
    Followed tutorial, crashes my entire game when launching into the server.
  25. 1 point
    Download the framework from here: https://github.com/AsYetUntitled/Framework Then follow the instructions on how to install it from here: https://github.com/AsYetUntitled/Framework/wiki/Setup-Server
  26. 1 point
    ArmaHosts has confirmed that this server is sponsored by them.
  27. 1 point
    The .dlls were not found. Re-install infiSTAR.
  28. 1 point
    Than past this: while {true} do { sleep 1; [] call life_fnc_hudUpdate; }; before this diag_log "----------------------------------------------------------------------------------------------------"; diag_log format [" End of Altis Life Server Init :: Total Execution Time %1 seconds ",(diag_tickTime) - _timeStamp]; diag_log "----------------------------------------------------------------------------------------------------";
  29. 1 point
    5.0 had a commit to fix that issue: https://github.com/AsYetUntitled/Framework/commit/b7c1cbc7586319e823d2e7851d4c072e875eca44
  30. 1 point
    @Hannkok Go in new_HUD.hpp and make sure the first class is named new_HUD and not Zazza1
  31. 1 point
    I've updated the post, redownload the new_HUD folder and follow step 7
  32. 1 point
  33. 1 point
    Never did post the solution...
  34. 1 point
  35. 1 point
  36. 1 point
    Yeah that's fine go for it.
  37. 1 point
    your installation mode is incomplete. Some details are missing to complete the installation. No wonder there are no comments on your script
  38. 1 point
    Ahh well hes under diff name now so no idea.
  39. 1 point
  40. 1 point
    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.
  41. 1 point
    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
  42. 1 point
    Checked by moderators, should be safe.
  43. 1 point
    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
  44. 1 point
    what I did was I took a default processor and changed it to meth then were it says life_inv_methi is the impure meth. you make the "class methi" that so it processes
  45. 0 points
    i was running another script from there for something else and when using spawn it was causing and error however remote exec didn't. I shall try spawn
×
×
  • Create New...