SHARE
TWEET

Untitled

a guest Sep 1st, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. (fn_peageAbonnement)
  3.  
  4.     AUTEUR : ADECYA FRANCE (ACF - https://adecya.fr)
  5.     TOUTE REPRODUCTION COMPLETE OU PARTIELLE DE NOS SCRIPTS EST INTERDITE !
  6. */
  7. _ACFPeageAboMoney = 52;
  8.  
  9. if (player getVariable ["AboPeage", 0] isEqualTo 1) then {
  10.     player setVariable ["AboPeage", 0];
  11.     ["Péage","Vous venez de vous désabonner de notre abonnement télépéage !"] call ACF_fnc_showNotification;
  12. } else {
  13.     //if (life_atmbank < _ACFPeageAboMoney) exitwith {["Péage",format ["Carte refusée - Solde insuffisant",_ACFPeageAboMoney]] call ACF_fnc_showNotification};
  14.     //life_atmbank = life_atmbank - _ACFPeageAboMoney;
  15.     //[0] call SOCK_fnc_updatePartial;
  16.     player setVariable ["AboPeage", 1];
  17.     ["Péage",format ["Vous venez de vous abonner à notre abonnement télépéage pour %1 € !",_ACFPeageAboMoney]] call ACF_fnc_showNotification;
  18. }
  19.  
  20.  
  21.  
  22. /*
  23. (fn_peageAutomatique)
  24.  
  25.     AUTEUR : ADECYA FRANCE (ACF - https://adecya.fr)
  26.     TOUTE REPRODUCTION COMPLETE OU PARTIELLE DE NOS SCRIPTS EST INTERDITE !
  27. */
  28. _ACFAreaPeage1 = peagearea1;
  29. _ACFAreaPeage2 = peagearea2;
  30. _ACFGatePeage1 = peagegate1;
  31. _ACFGatePeage2 = peagegate2;
  32. _ACFPeageAutoMoney = 8;
  33.  
  34. //if (life_atmbank < _ACFPeageAutoMoney) exitwith {["Péage","Carte refusée - Solde insuffisant"] call ACF_fnc_showNotification};
  35. if (player getVariable ["AboPeage", 0] isEqualTo 1 && vehicle player != player) then {
  36.     if (player inArea _ACFAreaPeage1) then {
  37.         ["Péage",format ["Vous venez de reçevoir une facture télépéage de %1 € !",_ACFPeageAutoMoney]] call ACF_fnc_showNotification;
  38.         //life_atmbank = life_atmbank - _ACFPeageAutoMoney;
  39.         //[0] call SOCK_fnc_updatePartial;
  40.         _ACFGatePeage1 animate ["Door_1_rot", 1];
  41.     };
  42.     if (player inArea _ACFAreaPeage2) then {
  43.         ["Péage",format ["Vous venez de reçevoir une facture télépéage de %1 € !",_ACFPeageAutoMoney]] call ACF_fnc_showNotification;
  44.         //life_atmbank = life_atmbank - _ACFPeageAutoMoney;
  45.         //[0] call SOCK_fnc_updatePartial;
  46.         _ACFGatePeage2 animate ["Door_1_rot", 1];
  47.     };
  48. } exitwith {};
  49.  
  50.  
  51.  
  52. /*
  53. (fn_peageManuel)
  54.  
  55.     AUTEUR : ADECYA FRANCE (ACF - https://adecya.fr)
  56.     TOUTE REPRODUCTION COMPLETE OU PARTIELLE DE NOS SCRIPTS EST INTERDITE !
  57. */
  58. _ACFAreaPeage1 = peagearea1;
  59. _ACFAreaPeage2 = peagearea2;
  60. _ACFGatePeage1 = peagegate1;
  61. _ACFGatePeage2 = peagegate2;
  62. _ACFPeageManuelMoney = 12;
  63.  
  64. //if (life_atmbank < _ACFPeageManuelMoney) exitwith {["Péage","Carte refusée - Solde insuffisant"] call ACF_fnc_showNotification};
  65. if (player inArea _ACFAreaPeage1) then {
  66.     ["Péage",format ["Voici votre ticket, vous venez de payer %1 € !",_ACFPeageManuelMoney]] call ACF_fnc_showNotification;
  67.     //life_atmbank = life_atmbank - _ACFPeageManuelMoney;
  68.     //[0] call SOCK_fnc_updatePartial;
  69.     _ACFGatePeage1 animate ["Door_1_rot", 1];
  70. };
  71. if (player inArea _ACFAreaPeage2) then {
  72.     ["Péage",format ["Voici votre ticket, vous venez de payer %1 € !",_ACFPeageManuelMoney]] call ACF_fnc_showNotification;
  73.     //life_atmbank = life_atmbank - _ACFPeageManuelMoney;
  74.     //[0] call SOCK_fnc_updatePartial;
  75.     _ACFGatePeage2 animate ["Door_1_rot", 1];
  76. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top