• Rajouter Grades police Altis Life


    Bonjour/Bonsoir,

    Tout est dans le titre.

    Je chercher simplement a rajouter des grade dans la police.

    Pour que certains haut gradés est accès a différentes tenues/armes.

    Merci d’avance pour vos réponses

    Strecko

  • @Strecko Ta questions est ajouté des Grade dans la Database (Navicat) ou un shop pour les haut gradé ?

  • @Pink3vil Dans des shops ingame

  • @Strecko Core > config > fn_weaponShopCfg.sqf

    switch(_shop) do  
    {  
    	case "cop_basic":  
    	{  
    		switch(true) do  
    		{  
    			case (playerSide != west): {"You are not a cop!"};  
    			default  
    			{  
    				["Armurie Recrue",  
    					[  
    						["hgun_P07_snds_F","Tazer",2000],  
    						["Binocular",nil,150],  
    						["ItemGPS",nil,100],  
    						["ToolKit",nil,250],  
    						["FirstAidKit",nil,150],  
    						["Medikit",nil,1000],  
    						["NVGoggles",nil,2000],  
    						["Binocular",nil,150],						  
    						["16Rnd_9x21_Mag",nil,50],  
    				        ["Chemlight_red",nil,300],  
    				        ["Chemlight_yellow",nil,300],  
    				        ["Chemlight_green",nil,300],  
    				        ["Chemlight_blue",nil,300]  
    					]  
    				];  
    			};  
    		};  
    	};  
    
    	case "med_basic":  
    	{  
    		switch (true) do   
    		{  
    			case (playerSide != independent): {"You are not an EMS Medic"};  
    			default {  
    				["Hospital EMS Shop",  
    					[  
    					    ["hgun_Pistol_Signal_F","Pistolet Lumière",10000],  
    						["6Rnd_GreenSignal_F","Munitions verte",250],  
    						["6Rnd_RedSignal_F","Munitions rouge",250],  
    						["ItemGPS",nil,100],  
    						["Binocular",nil,150],  
    						["ToolKit",nil,250],  
    						["FirstAidKit",nil,150],  
    						["Medikit",nil,500],  
    						["NVGoggles",nil,1200],  
    						["B_FieldPack_ocamo",nil,3000]  
    					]  
    				];  
    			};  
    		};  
    	};  
    
    	case "cop_patrol":  
    	{  
    		switch(true) do  
    		{  
    			case (playerSide != west): {"You are not a cop!"};  
    			case (__GETC__(life_coplevel) < 2): {"You are not at a patrol officer rank!"};  
    			default  
    			{  
    				["Armurie Brigadier",  
    					[  
    						["arifle_TRG21_F",nil,20000],  
    						["hgun_P07_snds_F","Tazer",2000],  
    						["acc_pointer_IR",nil,150],  
    						["acc_flashlight",nil,150],  
    						["optic_Holosight",nil,150],						  
    						["Binocular",nil,150],  
    						["ItemGPS",nil,100],  
    						["ToolKit",nil,250],  
    						["FirstAidKit",nil,150],  
    						["Medikit",nil,1000],  
    						["NVGoggles",nil,2000],  
    						["16Rnd_9x21_Mag",nil,50],  
    						["30Rnd_556x45_Stanag",nil,125],					  
    				        ["Chemlight_red",nil,300],  
    				        ["Chemlight_yellow",nil,300],  
    				        ["Chemlight_green",nil,300],  
    				        ["Chemlight_blue",nil,300]						  
    					]  
    				];  
    			};  
    		};  
    	};  
    
    	case "cop_adjudant":  
    	{  
    		switch(true) do  
    		{  
    			case (playerSide != west): {"You are not a cop!"};  
    			case (__GETC__(life_coplevel) < 3): {"You are not at a sergeant rank!"};  
    			default  
    			{  
    				["Armurie Adjudant",  
    					[  
    						["arifle_Mk20_F",nil,20000],  
    						["hgun_P07_snds_F","Tazer",2000],  
    						["acc_pointer_IR",nil,150],  
    						["acc_flashlight",nil,150],  
    						["optic_Holosight",nil,150],  
    						["optic_Aco_smg",nil,150],  
    						["muzzle_snds_M",nil,150],								  
    						["Binocular",nil,150],  
    						["ItemGPS",nil,100],  
    						["ToolKit",nil,250],  
    						["FirstAidKit",nil,150],  
    						["Medikit",nil,1000],  
    						["NVGoggles",nil,2000],  
    						["16Rnd_9x21_Mag",nil,50],  
    						["30Rnd_556x45_Stanag",nil,125],						  
    				        ["Chemlight_red",nil,300],  
    				        ["Chemlight_yellow",nil,300],  
    				        ["Chemlight_green",nil,300],  
    				        ["Chemlight_blue",nil,300]	  
    					]  
    				];  
    			};  
    		};  
    	};  
    
    	case "cop_lieutenant":  
    	{  
    		switch(true) do  
    		{  
    			case (playerSide != west): {"You are not a cop!"};  
    			case (__GETC__(life_coplevel) < 4): {"You are not at a sergeant rank!"};  
    			default  
    			{  
    				["Armurie Lieutenant",  
    					[  
    						["arifle_MX_F",nil,20000],  
    						["srifle_EBR_F",nil,20000],						  
    						["hgun_P07_snds_F","Tazer",2000],  
    						["acc_pointer_IR",nil,150],  
    						["acc_flashlight",nil,150],  
    						["optic_Holosight",nil,150],  
    						["optic_Aco_smg",nil,150],  
    						["optic_Arco",nil,150],  
    						["muzzle_snds_B",nil,150],						  
    						["muzzle_snds_H",nil,150],								  
    						["Binocular",nil,150],  
    						["ItemGPS",nil,100],  
    						["ToolKit",nil,250],  
    						["FirstAidKit",nil,150],  
    						["Medikit",nil,1000],  
    						["NVGoggles",nil,2000],  
    						["16Rnd_9x21_Mag",nil,50],  
    						["30Rnd_65x39_caseless_mag",nil,125],  
    						["20Rnd_762x51_Mag",nil,125],							  
    				        ["Chemlight_red",nil,300],  
    				        ["Chemlight_yellow",nil,300],  
    				        ["Chemlight_green",nil,300],  
    				        ["Chemlight_blue",nil,300]	  
    					]  
    				];  
    			};  
    		};  
    	};  
    
    	case "cop_Major":  
    	{  
    		switch(true) do  
    		{  
    			case (playerSide != west): {"You are not a cop!"};  
    			case (__GETC__(life_coplevel) < 5): {"You are not at a sergeant rank!"};  
    			default  
    			{  
    				["Armurie Major",  
    					[  
    						["arifle_MX_F",nil,20000],  
    						["arifle_MXM_F",nil,20000],						  
    						["srifle_EBR_F",nil,20000],  
    						["LMG_Mk200_F",nil,20000],								  
    						["hgun_P07_snds_F","Tazer",2000],  
    						["acc_pointer_IR",nil,150],  
    						["acc_flashlight",nil,150],  
    						["optic_Holosight",nil,150],  
    						["optic_Aco_smg",nil,150],  
    						["optic_Hamr",nil,150],	  
    						["optic_MRCO",nil,150],						  
    						["optic_Arco",nil,150],  
    						["muzzle_snds_B",nil,150],						  
    						["muzzle_snds_H",nil,150],  
    						["muzzle_snds_H_MG",nil,150],						  
    						["Binocular",nil,150],  
    						["ItemGPS",nil,100],  
    						["ToolKit",nil,250],  
    						["FirstAidKit",nil,150],  
    						["Medikit",nil,1000],  
    						["NVGoggles",nil,2000],  
    						["16Rnd_9x21_Mag",nil,50],  
    						["200Rnd_65x39_cased_Box",nil,150],						  
    						["30Rnd_65x39_caseless_mag",nil,125],  
    						["20Rnd_762x51_Mag",nil,125],							  
    				        ["Chemlight_red",nil,300],  
    				        ["Chemlight_yellow",nil,300],  
    				        ["Chemlight_green",nil,300],  
    				        ["Chemlight_blue",nil,300]	  
    					]  
    				];  
    			};  
    		};  
    	};		  
    
    		case "cop_capitaine":  
    	{  
    		switch(true) do  
    		{  
    			case (playerSide != west): {"You are not a cop!"};  
    			case (__GETC__(life_coplevel) < 6): {"You are not at a sergeant rank!"};  
    			default  
    			{  
    				["Armurie Capitaine",  
    					[  
    						["hgun_ACPC2_snds_F",nil,5000],					  
    						["arifle_MX_F",nil,20000],  
    						["srifle_LRR_F",nil,20000],  
    						["arifle_MX_SW_F",nil,20000],						  
    						["arifle_MXM_F",nil,20000],						  
    						["srifle_EBR_F",nil,20000],  
    						["LMG_Mk200_F",nil,20000],  
    						["launch_NLAW_F",nil,50000],						  
    						["hgun_P07_snds_F","Tazer",2000],  
    						["acc_pointer_IR",nil,150],  
    						["acc_flashlight",nil,150],  
    						["optic_Holosight",nil,150],  
    						["optic_Aco_smg",nil,150],  
    						["optic_Hamr",nil,150],  
    						["optic_SOS",nil,150],  
    						["optic_Nightstalker",nil,150],							  
    						["optic_MRCO",nil,150],						  
    						["optic_Arco",nil,150],  
    						["muzzle_snds_B",nil,150],						  
    						["muzzle_snds_H",nil,150],  
    						["muzzle_snds_H_MG",nil,150],						  
    						["Binocular",nil,150],  
    						["B_UavTerminal",nil,1000],  
    						["ItemGPS",nil,100],  
    						["ToolKit",nil,250],  
    						["FirstAidKit",nil,150],  
    						["Medikit",nil,1000],  
    						["NVGoggles",nil,2000],  
    						["16Rnd_9x21_Mag",nil,50],  
    						["7Rnd_408_Mag",nil,50],					  
    						["100Rnd_65x39_caseless_mag",nil,50],  
    						["9Rnd_45ACP_Mag",nil,50],							  
    						["200Rnd_65x39_cased_Box",nil,150],						  
    						["30Rnd_65x39_caseless_mag",nil,125],  
    						["20Rnd_762x51_Mag",nil,125],  
    						["NLAW_F",nil,50000],							  
    				        ["Chemlight_red",nil,300],  
    				        ["Chemlight_yellow",nil,300],  
    				        ["Chemlight_green",nil,300],  
    				        ["Chemlight_blue",nil,300]	  
    					]  
    				];  
    			};  
    		};  
    	};  
    
        case "cop_chef":  
    	{  
    		switch(true) do  
    		{  
    			case (playerSide != west): {"You are not a cop!"};  
    			case (__GETC__(life_coplevel) < 7): {"You are not at a sergeant rank!"};  
    			default  
    			{  
    				["Armurie Général / Colonel",  
    					[  
    						["hgun_ACPC2_snds_F",nil,5000],					  
    						["arifle_MX_F",nil,20000],  
    						["srifle_LRR_F",nil,20000],  
    						["arifle_MX_SW_F",nil,20000],						  
    						["arifle_MXM_F",nil,20000],  
    						["arifle_MX_GL_F",nil,20000],							  
    						["srifle_EBR_F",nil,20000],  
    						["LMG_Mk200_F",nil,20000],  
    						["srifle_GM6_F",nil,20000],						  
    						["launch_NLAW_F",nil,50000],  
    						["launch_Titan_F",nil,50000],						  
    						["hgun_P07_snds_F","Tazer",2000],  
    						["acc_pointer_IR",nil,150],  
    						["acc_flashlight",nil,150],  
    						["optic_Holosight",nil,150],  
    						["optic_Aco_smg",nil,150],  
    						["optic_Hamr",nil,150],  
    						["optic_SOS",nil,150],  
    						["optic_Nightstalker",nil,150],							  
    						["optic_MRCO",nil,150],						  
    						["optic_Arco",nil,150],  
    						["optic_tws",nil,150],							  
    						["optic_NVS",nil,150],  
    						["B_UavTerminal",nil,1000],						  
    						["muzzle_snds_B",nil,150],						  
    						["muzzle_snds_H",nil,150],  
    						["muzzle_snds_H_MG",nil,150],						  
    						["Binocular",nil,150],  
    						["ItemGPS",nil,100],  
    						["ToolKit",nil,250],  
    						["FirstAidKit",nil,150],  
    						["Medikit",nil,1000],  
    						["NVGoggles",nil,2000],  
    						["16Rnd_9x21_Mag",nil,50],  
    						["7Rnd_408_Mag",nil,50],					  
    						["100Rnd_65x39_caseless_mag",nil,50],  
    						["9Rnd_45ACP_Mag",nil,50],  
    						["5Rnd_127x108_Mag",nil,50],  
    						["3Rnd_UGL_FlareRed_F",nil,50],  
    						["1Rnd_SmokeRed_Grenade_shell",nil,50],						  
    						["200Rnd_65x39_cased_Box",nil,150],						  
    						["30Rnd_65x39_caseless_mag",nil,125],  
    						["20Rnd_762x51_Mag",nil,125],  
    						["NLAW_F",nil,50000],  
    						["Titan_AA",nil,50000],						  
    				        ["Chemlight_red",nil,300],  
    				        ["Chemlight_yellow",nil,300],  
    				        ["Chemlight_green",nil,300],  
    				        ["SmokeShell",nil,300]	  
    					]  
    				];  
    			};  
    		};  
    	};	  
    
    

    Script by Pink :)

    Apres demande moi si tu veut ajouté pour le NPC dans la map !

  • Ok merci ! :) Se script est libre de droits ?

  • @Strecko Je te le donne ! Oui modifie les Armes si tu veut !!

    Tien pour toi : http://wiki.7thcavalry.us/wiki/Arma_3_CfgWeapons_Weapons

    Merci de like mon Post !

  • @Pink3vil Merci a toi je test ca tout de suite!

  • @Pink3vil problème ! Le menu ne me propose pas les différents grades :/

    Pourquoi ?

    http://image.noelshack.com/fichiers/2014/36/1409769180-2014-09-03-00001.jpg

    De plus dans la boutique du grade sergent, il n’y a plus d’items. (oublis de virgule je pense) – ce n’est pas le plus important

  • @Strecko Normal, il faut modifié la map, va sur le NPC de Kavala est mes ce code !

    this enableSimulation false; this addAction["Marché",life_fnc_virt_menu,"cop"];  this allowDamage false;  this addAction["Magasin Vêtements",life_fnc_clothingMenu,"cop"];  this addAction["Armurie Recrue",life_fnc_weaponShopMenu,"cop_basic"];  this addAction["Armurie Brigadier",life_fnc_weaponShopMenu,"cop_patrol"];  this addAction["Armurie Adjudant",life_fnc_weaponShopMenu,"cop_adjudant"];  this addAction["Armurie Lieutenant",life_fnc_weaponShopMenu,"cop_lieutenant"];  this addAction["Armurie Major",life_fnc_weaponShopMenu,"cop_Major"];  this addAction["Armurie Capitaine",life_fnc_weaponShopMenu,"cop_capitaine"];  this addAction["Armurie Colonel / Général",life_fnc_weaponShopMenu,"cop_chef"]; this addAction[format["%1 ($%2)",["license_cop_air"] call life_fnc_varToStr,[(["cair"] call life_fnc_licensePrice)] call life_fnc_numberText],life_fnc_buyLicense,"cair",0,false,false,"",' !license_cop_air && playerSide == west ']; this addAction[format["%1 ($%2)",["license_cop_cg"] call life_fnc_varToStr,[(["cg"] call life_fnc_licensePrice)] call life_fnc_numberText],life_fnc_buyLicense,"cg",0,false,false,"",' !license_cop_cg && playerSide == west '];  
    

    Voila

  • @Strecko Essaye de comprendre le Script

  • @Pink3vil

    D’accord, je comprend le script, mais je chercher ou le placer !

    Je ne savais pas que c’etait sur le PNJ !

    Merci beaucoup

  • @Strecko Voila dit moi des nouvelles ! et n’oublie pas de like !

  • Salut !

    Tu peut également faire ceci avec les véhicules !

    Dans –>

    core/config/fn_VehiculeListCfh.sqf

    ou un fichier un fichier de ce non

    (je n’ai pas le nom précis car je ne suis pas devant mon PC)

  • @Aircoifft Plus difficile sa car il y  a deux fichiers a modifié

  • @Aircoifft Plus difficile sa car il y a deux fichiers a modifié

    Comment ça ? Il y a juste le fichier avec la liste des véhicules (celui que j’ai donné) non ?

  • @Aircoifft Non, il y a le fn_Véhicleconfigstr.cfg

  • @Aircoifft Non, il y a le fn_Véhicleconfigstr.cfg

    m

    Ha OK autant pour moi ;-)

  • @Aircoifft :)

  • Bonjour,

    Et dans la même optique que les questions précédentes, est-il possible d’ajouter des rangs “cop_level” dans Navicat ?

    Merci bien

  • Regarde dans Tutoriels

Messages 48Vues 7847