Jump to content

Shakir Darwish

Admin
  • Content Count

    40
  • Joined

  • Last visited

Everything posted by Shakir Darwish

  1. Shakir Darwish

    [Tutorial]Cop load outs

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Difficulty: Easy Author: Jason_000 Source: Old Altis Life RPG( SreenShot as atach file) -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Hey this is my first post so I know it probably could be done better but this works fine for me anyways the script allows cops to buy a loadout instead of having to buy their gear each time. Also this works on 4.0 for other versions im sure you will probably have to change FETCH_CONST to some other variable which I am not sure of Ok first for this I will use the mxloadout which is set to level 3, put this into your core/functions folder and name it fn_mxloadout.sqf. #include <macro.h> /* File: mxloadout.sqf Author: Jason_000 Description: Sets mx loadout to the player */ if (playerSide == independent) exitWith {hint "You must be a cop to purchase this!"}; //cops only if (playerSide == civilian) exitWith {hint "You must be a cop to purchase this!"}; //cops only if((FETCH_CONST(life_coplevel)) < 3) exitWith { hint "You are not the right level!"}; //level 3+ /* { exitWith { hint "You are not the right level!"}; //level 3+ }; */ if (life_cash > 29999) then //30k { life_cash = life_cash - 30000; //30k hintSilent "30000 has been removed for this kit"; sleep 2; hintSilent "Please wait while your kit is being assembled, this may take a while"; //Removes all items the player has (Not Y Menu) RemoveAllWeapons player; { player removeMagazine _x; } forEach (magazines player); removeUniform player; removeVest player; removeBackpack player; removeHeadGear player; sleep 2; //Arma id for weapons, clothes, ... player addUniform "U_B_CombatUniform_mcam"; player addVest "V_Chestrig_blk"; player addBackpack "B_Bergen_blk"; player addHeadGear "H_Beret_blk_POLICE"; player addWeapon "arifle_MX_F"; //lethal player addMagazine "30Rnd_65x39_caseless_mag"; player addMagazine "30Rnd_65x39_caseless_mag"; player addMagazine "30Rnd_65x39_caseless_mag"; player addWeapon "hgun_P07_snds_F"; //tazer player addMagazine "16Rnd_9x21_Mag"; player addMagazine "16Rnd_9x21_Mag"; player addMagazine "16Rnd_9x21_Mag"; //Virtual items, who knows might be used... -check config_master player addItem "redgull"; player assignItem "redgull"; player addItem "tbacon"; player assignItem "tbacon"; // hintSilent "You are all kitted up and ready to stop crime, good luck officer!"; } else { hintSilent "Sorry you do not have 30000 for this loadout"; }; Then you need to go to your functions.h file and add class mxloadout {}; under the functions class. Ingame to buy them I used a scroll wheel menu so for that just add this enableSimulation false; this allowDamage false; this addAction ["MX Loadout", life_fnc_mxloadout]; to an NPC. After that you should be done, and for more kits basically repeat this changing the file name, the functions class, the NPC addAction and obviously the first file and the items it gives. Any problems just let me know. For 3.1.4.8 FETCH_CONST Needs to be changed to __GETC__
  2. Shakir Darwish

    [FR] Serveur Alis Life Non modé - ExploraLife

    Bonjours, pour débuté je vous souhaite bonne chance dans votre projet, j'ai du supprimer les image car elle vienne d'un autre site et sa fonctionne pas
  3. Hi, could you please add so picture of your server please
  4. Les screen ne se sont pas afficher car il venait de AltisDev
  5. Shakir Darwish

    [Tutorial] New trunk

    Its look great, nice job
  6. Bonjours, premièrement je vous souhaite bonne chance, j'ai cependant ajouter l'adresse de votre Teamspeak a votre poste et j'ai aussi du supprimer les screenshot car il ne fonctionnaient pas. Cordialement Shakir Darwish
  7. Shakir Darwish

    [Read] Helper template

    Hi, we are opening recruitment for helper if you would like to join our helper team you just have to make a post with the following information, it will be reviewed and an answer will be given within 1-2 days: Tell us about yourself: What skills do you possess that you feel will help you do well as a helper? Have you ever been banned/kicked ( if yes please specify why )? Your date of birth: / / / What's your experience with SQF and SQL languages, or other sorts of Arma related development? What is the first thing you would like to change about the forums(Nothing? then NA)? Do you have Discord? Do you have any problems working with other staff members? Why do you want to be a Helper? How would you deal with someone being rude towards members? If you were to become a helper, would a moderator position be appealing to you as well in the future?
  8. Can you please add some screenshot of your server please
  9. Shakir Darwish

    [FR] DEFCON-LIFE - 500k - Zone de Gang - Casino

    Bonjours à vous, premièrement je vous souhaite bonne chance, je vous demanderais de mettre quelque photo du serveur(Map,Skin,Véhicule,etc). Merci Cordialement Shakir Darwish
  10. Shakir Darwish

    [FR] Mto Life

    Bonjours a vous, pour commencer je vous souhaite bonne chance avec votre serveur, cependant serait-il possible de mettre quelque photo de votre serveur? Merci Cordialement Shakir Darwish
  11. Shakir Darwish

    [FR] SynergyLife arrive sur altis

    Super petit serveur, Staff bien sympathique, le serveur est stable, plaisant à jouer +1
  12. Shakir Darwish

    Greetings!

    Welcome back buddy
  13. Difficulty: Easy Author: alex010 Source: AltisLifeRPG (Old forum) Hello, this was made for ALI (Altis Life Italia Official). Don't know if the spawnMenu.sqf changed in 4.0.0, if not, this will work for this version too, otherwise adapt it. So many times for mistake or whatever pressing Enter while dead makes you respawn. This will make a dialog appear requesting a confirmation. in \core\fn_initCiv.sqf - line 22 modify: [] call life_fnc_spawnMenu; to: [false] spawn life_fnc_spawnMenu; in \core\fn_initCop.sqf - line 28 modify: [] call life_fnc_spawnMenu; to: [false] spawn life_fnc_spawnMenu; in \core\fn_initMedic.sqf - line 18 modify: [] call life_fnc_spawnMenu; to: [false] spawn life_fnc_spawnMenu; in \dialog\deathscreen.h - line 44 modify: onButtonClick = "closeDialog 0; life_respawned = true; [] call life_fnc_spawnMenu;"; to: onButtonClick = "[true] spawn life_fnc_spawnMenu;"; in \dialog\functions\spawnMenu.sqf make a backup of the file and use this instead: /* File: fn_spawnMenu.sqf Author: Bryan "Tonic" Boardwine Modified by: Al Morise(Sink) Description: Initializes the spawn point selection menu. */ private["_spCfg", "_sp", "_ctrl", "_action", "_bool", "_quit", "_wait"]; disableSerialization; _bool = [_this, 0, false, [false]] call BIS_fnc_param; _quit = false; _wait = false; if(_bool) then { _action = [format["Are you sure to respawn?"], "Respawn confirmation", "No", "Yes"] call BIS_fnc_guiMessage; if(_action) then { _quit = true; }; _wait = true; } else { _wait = true; }; waitUntil { _wait }; if(_quit) exitWith {}; if(_bool) then { closeDialog 0; life_respawned = true; }; if(life_is_arrested) exitWith { [] call life_fnc_respawned; }; if(life_respawned) then { [] call life_fnc_respawned; }; cutText["", "BLACK FADED"]; 0 cutFadeOut 9999999; if(!(createDialog "life_spawn_selection")) exitWith { [false] spawn life_fnc_spawnMenu; }; (findDisplay 38500) displaySetEventHandler["keyDown", "_this call life_fnc_displayHandler"]; _spCfg = [playerSide] call life_fnc_spawnPointCfg; _ctrl = ((findDisplay 38500) displayCtrl 38510); { _ctrl lnbAddRow[(_spCfg select _ForEachIndex) select 1, (_spCfg select _ForEachIndex) select 0, ""]; _ctrl lnbSetPicture[[_ForEachIndex, 0], (_spCfg select _ForEachIndex) select 2]; _ctrl lnbSetData[[_ForEachIndex, 0], (_spCfg select _ForEachIndex) select 0]; } foreach _spCfg; _sp = _spCfg select 0; //First option is set by default [((findDisplay 38500) displayCtrl 38502),1,0.1,getMarkerPos (_sp select 0)] call life_fnc_setMapPosition;life_spawn_point = _sp;ctrlSetText[38501,format["%2: %1",_sp select 1,localize "STR_Spawn_CSP"]]; Steam: [PKS] Sink
  14. Shakir Darwish

    [Tutorial] Add license

    I post it september 18, a lot of thing have change
  15. Shakir Darwish

    [Tutorial] Add license

    Difficulty: Easy Author: HugoMiller3625 Translate and adjuste by: Shakir Darwish Source: Altis Dev.com: Link ----------------------------------------------------- Step one: open \ Core \ Configuration.sqf : Find : life_licenses and add your license like this: life_licenses = [ [“license_cop_air”,“cop”], [“license_cop_swat”,“cop”], [“license_cop_cg”,“cop”], [“license_civ_driver”,“civ”], [“license_civ_air”,“civ”], [“license_civ_heroin”,“civ”], [“license_civ_marijuana”,“civ”], [“license_civ_gang”,“civ”], [“license_civ_boat”,“civ”], [“license_civ_oil”,“civ”], [“license_civ_dive”,“civ”], [“license_civ_truck”,“civ”], [“license_civ_gun”,“civ”], [“license_civ_rebel”,“civ”], [“license_civ_coke”,“civ”], [“license_civ_diamond”,“civ”], [“license_civ_copper”,“civ”], [“license_civ_iron”,“civ”], [“license_civ_sand”,“civ”], [“license_civ_salt”,“civ”], [“license_civ_cement”,“civ”], [“license_med_air”,“med”], [“license_civ_home”,“civ”], [“license_civ_here”,“civ”] // Change the license name ! ]; Step two: Open \ Core \ Config \ fn_licenseType.sqf : At Case 0 : Add your license like this: case 0: { switch (_type) do { case “driver”: {_var = “license_civ_driver”}; //Drivers License cost case “boat”: {_var = “license_civ_boat”}; //Boating license cost case “pilot”: {_var = “license_civ_air”}; //Pilot/air license cost case “gun”: {_var = “license_civ_gun”}; //Firearm/gun license cost case “dive”: {_var = “license_civ_dive”}; //Diving license cost case “oil”: {_var = “license_civ_oil”}; //Oil processing license cost case “cair”: {_var = “license_cop_air”}; //Cop Pilot License cost case “swat”: {_var = “license_cop_swat”}; //Swat License cost case “cg”: {_var = “license_cop_cg”}; //Coast guard license cost case “heroin”: {_var = “license_civ_heroin”}; //Heroin processing license cost case “marijuana”: {_var = “license_civ_marijuana”}; //Marijuana processing license cost case “medmarijuana”: {_var = “license_civ_medmarijuana”}; //Medical Marijuana processing license cost case “gang”: {_var = “license_civ_gang”}; //Gang license cost case “rebel”: {_var = “license_civ_rebel”}; //Rebel License case “truck”:{_var = “license_civ_truck”}; //Truck License case “diamond”: {_var = “license_civ_diamond”}; case “salt”: {_var = “license_civ_salt”}; case “cocaine”: {_var = “license_civ_coke”}; case “sand”: {_var = “license_civ_sand”}; case “iron”: {_var = “license_civ_iron”}; case “copper”: {_var = “license_civ_copper”}; case “cement”: {_var = “license_civ_cement”}; case “mair”: {_var = “license_med_air”}; case “home”: {_var = “license_civ_home”}; case “ici”: {_var = “license_civ_here”}; // Add your license here default {_var = “”}; }; }; Be sure to put your license before : Default {_var = “”}; Step three: Open \ Core \ Config \ fn_licensePrice.sqf add your license here: case “EXAMPLE”: {250000}; // 25000 est le prix de votre licencecase “EXAMPLE”: {250000}; // 25000 is the price of your license Step four: Open \ Core \ Config \ fn_varToStr.sqf Find //license block: //License Block case “license_civ_driver”: {(localize “STR_License_Driver”)}; case “license_civ_air”: {(localize “STR_License_Pilot”)}; case “license_civ_heroin”: {(localize “STR_License_Heroin”)}; case “license_civ_oil”: {(localize “STR_License_Oil”)}; case “license_civ_dive”: {(localize “STR_License_Diving”)}; case “license_civ_boat”: {(localize “STR_License_Boat”)}; case “license_civ_gun”: {(localize “STR_License_Firearm”)}; case “license_cop_air”: {(localize “STR_License_Pilot”)}; case “license_cop_swat”: {(localize “STR_License_Swat”)}; case “license_cop_cg”: {(localize “STR_License_CG”)}; case “license_civ_rebel”: {(localize “STR_License_Rebel”)}; case “license_civ_truck”: {(localize “STR_License_Truck”)}; case “license_civ_diamond”: {(localize “STR_License_Diamond”)}; case “license_civ_copper”: {(localize “STR_License_Copper”)}; case “license_civ_iron”: {(localize “STR_License_Iron”)}; case “license_civ_sand”: {(localize “STR_License_Sand”)}; case “license_civ_salt”: {(localize “STR_License_Salt”)}; case “license_civ_coke”: {(localize “STR_License_Cocaine”)}; case “license_civ_marijuana”: {(localize “STR_License_Marijuana”)}; case “license_civ_cement”: {(localize “STR_License_Cement”)}; case “license_med_air”: {(localize “STR_License_Pilot”)}; case “license_civ_home”: {(localize “STR_License_Home”)}; case “license_civ_ici”: {(localize “STR_License_here”)}; // add your license here }; Fifth step Open your mission.sql in Arma3 Editor. Create or edit a NPC where people can buy a license . Add this in the Init Line: this addAction[format["%1 ($%2)",[“license_civ_here”] call life_fnc_varToStr,[([“here”] call life_fnc_licensePrice)] call life_fnc_numberText],life_fnc_buyLicense,“here”,0,false,false,"",’ !license_civ_here && playerSide == civilian ']; change the license name by the name you want Don't forgot to add this line in the NPC init line: this allowDamage false; this enableSimulation false; Thanks for reading.
  16. Shakir Darwish

    Euphoria RP - Tanoa Life 4.4r3

    Très belle présentation je vais passer faire un tour Bonne chance a vous
  17. Shakir Darwish

    Welcome back everyone!

    Welcome back
  18. Shakir Darwish

    Altis Life Help Reference Guide

    Thanks for this Reference guide
  19. Shakir Darwish

    Forum Rules

    Rules of the forums: 1. Rudeness and belittling language are not okay. Your tone should match the way you'd talk in person with someone you respect and whom you want to respect you. If you don't have time to say something politely, just leave it for someone who does. 2. Be welcoming, be patient, and assume good intentions. Don't expect new users to know all the rules — they don't. And be patient while they learn. If you're here for help, make it as easy as possible for others to help you. Everyone here is volunteering, and no one responds well to demands for help. 3. Don’t request scripts. This is not a place where we will provide any requested scripts, nor will we write any code for you. Altis Life RPG is a support community for developers and server owners. We cannot teach you to script for ArmA, but we will help you debug your own setup and code. 4. Don't be a jerk. These are just a few examples. If you see them, report them: a. Name-calling. Focus on the post, not the person. That includes terms that feel personal even when they're applied to posts (like "lazy", "ignorant", or "whiny"). b. Bigotry of any kind. Language likely to offend or alienate individuals or groups based on race, gender, sexual orientation, religion, etc. will not be tolerated. At all. (Those are just a few examples; when in doubt, just don't.) c. Inappropriate language or attention. Avoid vulgar terms and anything sexually suggestive. d. Harassment and bullying. If you see a hostile interaction, report it. If it keeps up, disengage — we'll handle it. If something needs staff attention, you can message any staff member. 5. Speak in English. Posts in a different language will be deleted, and topics will be closed. (Besides the designated sections) 6. No selling code or services. This is a place for volunteering your support. If you have a scripting company and want to advertize with us, please contact an admin for more information General rules: Be respectful to other members Must speak English, posts in a different language will be deleted and topics will be closed. (Besides the designated sections) Do not message admins for help related to Altis-Life & Tanoa Life or anything from Arma 3. Only contact us about website issues. *** Do not use the chat box to ask for help, search for an existing topic or create one. Do not post link to external website. *** ** Do not spam, other website or personal social media activity, except for give source or credit, DONT TRY TO BYPASS THAT RULE WITH FAKE HELPING REASON. *** STOP! Before posting please use the search bar!
  20. Shakir Darwish

    [Tutorial] SafeZone Warning & Actions

    @Kangarang1 Send me this correction, can someone verifed it : /* File: al_safezone.sqf Edited by: Tyler - ALRPG Profile: http://goo.gl/VmgCB0 Description:Allows you to setup markers that execute the SafeZone script. Note: A lot of this is just C&P with different code. It's kinda simple to add / remove stuff */ #define POLICE_ZONES [["pz_xx", 50]] #define CIV_ZONES [["cz_xx", 50]] #define KOS_ZONES [["kos_xx", 50]] #define PZ_MSG "You are entering the Police Area. Do not Kill or Rob here!" #define CIV_MSG "You are entering a Civilian SafeZone. Do not commit crimes, rob people, or kill!" #define KOS_MSG "You are entering a KOS (Kill on sight) area. You may commit crimes, rob, and kill people without initation." if (isDedicated) exitWith {}; waitUntil {!isNull player}; switch (playerSide) do { case civilian: { player addEventHandler ["Fired", { if ({(_this select 0) distance getMarkerPos (_x select 0) < _x select 1} count POLICE_ZONES > 0) then { deleteVehicle (_this select 6); titleText [PZ_MSG, "PLAIN", 3]; }; }]; }; }; switch (playerSide) do { case civilian: { player addEventHandler ["Fired", { if ({(_this select 0) distance getMarkerPos (_x select 0) < _x select 1} count CIV_ZONES > 0) then { deleteVehicle (_this select 6); titleText [CIV_MSG, "PLAIN", 3]; }; }]; }; }; switch (playerSide) do { case civilian: { player addEventHandler ["Fired", { if ({(_this select 0) distance getMarkerPos (_x select 0) < _x select 1} count KOS_ZONES > 0) then { deleteVehicle (_this select 6); titleText [KOS_MSG, "PLAIN", 3]; }; }]; }; };
  21. Shakir Darwish

    [Tutorial]Cop load outs

    I just edit it for the 3.1.4.8
×