Script proposé par 
			
 
		Aldar Ducken ! Merci à lui 
Bonjour,
Ce tutoriel est destiné aux utilisateur ayant sur leur serveur les script The-Programmer suivants :
-Impound System
-Company System
Action du script : Lorsqu'un joueur payera pour sortir un véhicule de la fourrière, l'argent sera transféré sur le compte d'une entreprise (dépanneurs par exemple).
Fichiers à modifier :
The-Programmer\Fourriere\config_master.cpp.
@The_Programmer\addons\impound.pbo\client\fn_unimpoundVehFourriere.sqf
Etape 1 : Dans The-Programmer/Fourriere/config_master.cpp situé dans votre mission :
Ajouter la ligne suivante :
	
	
	
		
Etape 2 : dans @The_Programmer\addons\impound.pbo\client\fn_unimpoundVehFourriere.sqf situé à la racine de votre serveur.
Cherchez :
	
	
	
		
Ajoutez en dessous :
	
	
	
		
Recompilez les PBO et remplacez celui présent sur votre FTP.
Redémarrez votre serveur.
Enjoy !
				
			
Bonjour,
Ce tutoriel est destiné aux utilisateur ayant sur leur serveur les script The-Programmer suivants :
-Impound System
-Company System
Action du script : Lorsqu'un joueur payera pour sortir un véhicule de la fourrière, l'argent sera transféré sur le compte d'une entreprise (dépanneurs par exemple).
Fichiers à modifier :
The-Programmer\Fourriere\config_master.cpp.
@The_Programmer\addons\impound.pbo\client\fn_unimpoundVehFourriere.sqf
Etape 1 : Dans The-Programmer/Fourriere/config_master.cpp situé dans votre mission :
Ajouter la ligne suivante :
		Code:
	
	
	ent_depan = 5; //Remplacez ce chiffre par l'ID de l'entreprise qui encaissera l'argent.
	Etape 2 : dans @The_Programmer\addons\impound.pbo\client\fn_unimpoundVehFourriere.sqf situé à la racine de votre serveur.
Cherchez :
		Code:
	
	
	life_atmbank = life_atmbank - _price;
	Ajoutez en dessous :
		Code:
	
	
	//Modification Aldar Ducken pour The-Programmer
_entid = getNumber(missionConfigFile >> "Max_Settings_Fourriere" >> "ent_depan");
_ent = objNull;
{
_id = _x select 0;
_ent = _x select 1;
if (_id isequalto _entid) exitWith {_ent = _x select 1;};
}foreach maxence_all_entreprises;
_oldEntACC = _ent getVariable ["entreprise_bankacc",0];
_oldEntACC = _oldEntACC + _price;
_ent setVariable ["entreprise_bankacc",_oldEntACC,true];
[(_ent getVariable ["entreprise_id",0]),5,(_ent getVariable ["entreprise_bankacc",0])] remoteExecCall ["max_entreprise_fnc_updateEntreprise",2];
[_ent,format ["%1 (Fourrière)",(name player)],_price,2] remoteExecCall ["max_entreprise_fnc_insertEntrepriseLogs",2];
//Fin modification Aldar Ducken pour The-Programmer
	Recompilez les PBO et remplacez celui présent sur votre FTP.
Redémarrez votre serveur.
Enjoy !
			
				Dernière édition par un modérateur: