Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Author: ELF TEAM AKA LA MUERTE
- Title: fn_Menu_credit.sqf
- */
- _mode = _this select 0;
- if(!dialog) then {
- createDialog "credit_bank";
- };
- disableSerialization;
- _display = findDisplay 33000;
- _timeingame = (life_playtime splitstring ",[]") select 3;
- diag_log _timeingame;
- switch (_mode) do{
- case 0 : {//PRESENTATION
- _presentation = "
- Bienvenue a la banque Bretonne,
- <br/>
- <br/>
- Vous avez besoin d'argent??
- <br/>
- <br/>
- Ne vous inquietez pas et remplissez ce formulaire.
- <br/>
- L'argent sera disponible d'ici 24h (si acceptation du dossier).
- <br/>
- <br/>
- La banque Bretonne.
- ";
- (_display displayCtrl 33004) ctrlSetStructuredText parseText format ["<t align='center'><t color='#FF8000'><t size='0.9'>%1</t></t></t>",_presentation];
- };
- case 1 : {//Simultation
- _montant = parseNumber (ctrlText 33007);
- _mensualite = parseNumber (ctrlText 33009);
- _v1 = "300";//5H
- _v2 = "600";//10h
- _v3 = "1440";//24h
- _v4 = "2880";//48h
- diag_log "_timeingame";
- diag_log _timeingame;
- //If (life_atmbank =< 0) exitWith {hint "Nous ne prettons pas d'argent vu votre compte en banque!"};
- If (_montant isEqualTo "" || _montant <= 0) exitWith {hint "Vous n'avez pas indiqué de montant!"};
- If (_montant >= 250001) exitWith {hint "Le Montant maximum autorisé est de 250 000 €"};
- If (_mensualite isEqualTo "" || _mensualite isEqualTo 0) exitWith {hint "Vous n'avez pas indiqué de Mensualitée!"};
- if ((_montant < 35001) && (_v1 > _timeingame )) exitWith {_condition = "Non"} else {_condition = "Oui"};
- if ((_montant < 75001) && (_v2 > _timeingame )) exitWith {_condition = "Non"} else {_condition = "Oui"};
- if ((_montant < 125001) && (_v3 > _timeingame )) exitWith {_condition = "Non"} else {_condition = "Oui"};
- if ((_montant < 250001) && (_v4 > _timeingame )) exitWith {_condition = "Non"} else {_condition = "Oui"};
- _simu = format ["Montant de l'emprunt : %1 %3 / Mensualités : %2/par jours.<br/>Condition remplie %4", _montant, _mensualite, "€",_condition];
- (_display displayCtrl 33010) ctrlSetStructuredText parseText format ["<t align='center'><t color='#FF8000'><t size='0.9'>%1</t></t></t>",_simu];
- };
- Case 2 : {
- _montant = parseNumber (ctrlText 33007);
- _mensualite = parseNumber (ctrlText 33009);
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement