Advertisement
ykos

Untitled

Oct 11th, 2021
740
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 4.06 KB | None | 0 0
  1. new
  2.             payday_multiplier = xpayday;
  3.  
  4.         if (payday_multiplier < 1) {
  5. // количество PayDay'ев
  6.             payday_multiplier = 1;
  7.         }
  8.  
  9.         new
  10.             Bank = 0,
  11.             VIP = PI[i][pVIP];
  12.  
  13.         if (PI[i][pCredit] == 0 && PI[i][pView] == 0) // если нет кредита и не в деморгане
  14.         {
  15.             new fam = PI[i][pFMember];
  16.             new maxe = 100_000_000;
  17.  
  18.             if (fam !=-1)
  19.             {
  20.                 if (FInfo[fam][fBest][6]!=0) {
  21.                     maxe = 200_000_000;
  22.                 }
  23.             }
  24.  
  25.             switch (VIP)
  26.             {
  27.                 case STATUS_NONE:
  28.                 {
  29.                     if (PI[i][pDepozit]>5000)
  30.                     {
  31.                         if (IsLauncherConnected(i) || IsMobileConnected(i))
  32.                         {
  33.                             if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/1450.0);
  34.                             else Bank = floatround(float(maxe)/1450.0);
  35.                         }
  36.                         else
  37.                         {
  38.                             if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/1500.0);
  39.                             else Bank = floatround(float(maxe)/1500.0);
  40.                         }
  41.                        
  42.                     }
  43.                 }
  44.                 case STATUS_VIP:
  45.                 {
  46.                     if (PI[i][pDepozit]>5000)
  47.                     {
  48.                         if (IsLauncherConnected(i) || IsMobileConnected(i))
  49.                         {
  50.                             if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/1350.0);
  51.                             else Bank = floatround(float(maxe)/1350.0);
  52.                         }
  53.                         else
  54.                         {
  55.                             if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/1400.0);
  56.                             else Bank = floatround(float(maxe)/1400.0);
  57.                         }
  58.                     }
  59.                 }
  60.                 case STATUS_GOLD:
  61.                 {
  62.                     if (PI[i][pDepozit]>5000)
  63.                     {
  64.                         if (IsLauncherConnected(i) || IsMobileConnected(i))
  65.                         {
  66.                             if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/1250.0);
  67.                             else Bank = floatround(float(maxe)/1250.0);
  68.                         }
  69.                         else
  70.                         {
  71.                             if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/1300.0);
  72.                             else Bank = floatround(float(maxe)/1300.0);
  73.                         }
  74.                     }
  75.                 }
  76.                 case 3:
  77.                 {
  78.                     PI[i][pExp] += 1 * payday_multiplier;
  79.  
  80.                     if (PI[i][pDepozit]>5000)
  81.                     {
  82.                         if (IsLauncherConnected(i) || IsMobileConnected(i))
  83.                         {
  84.                             if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/1200.0);
  85.                             else Bank = floatround(float(maxe)/1200.0);
  86.                         }
  87.                         else
  88.                         {
  89.                             if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/1250.0);
  90.                             else Bank = floatround(float(maxe)/1250.0);
  91.                         }
  92.                     }
  93.                 }
  94.                 case 4:
  95.                 {
  96.                     PI[i][pExp] += 1 * payday_multiplier;
  97.  
  98.                     if (PI[i][pDepozit]>5000)
  99.                     {
  100.                         if (IsLauncherConnected(i) || IsMobileConnected(i))
  101.                         {
  102.                             if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/1150.0);
  103.                             else Bank = floatround(float(maxe)/1150.0);
  104.                         }
  105.                         else
  106.                         {
  107.                             if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/1200.0);
  108.                             else Bank = floatround(float(maxe)/1200.0);
  109.                         }
  110.                     }
  111.                 }
  112.                 case 5:
  113.                 {
  114.                     PI[i][pExp] += 1 * payday_multiplier;
  115.  
  116.                     if (customafk_Get(i)<200 && PI[i][pWarns] == 0) {
  117.                         GiveDonate( i, 2 * payday_multiplier );
  118.                     }
  119.  
  120.                     if (PI[i][pDepozit]>5000)
  121.                     {
  122.                         if (IsLauncherConnected(i) || IsMobileConnected(i))
  123.                         {
  124.                             if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/1100.0);
  125.                             else Bank = floatround(float(maxe)/1100.0);
  126.                         }
  127.                         else
  128.                         {
  129.                             if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/1150.0);
  130.                             else Bank = floatround(float(maxe)/1150.0);
  131.                         }
  132.                     }
  133.                 }
  134.                 case 6:
  135.                 {
  136.                     PI[i][pExp] += 1 * payday_multiplier;
  137.  
  138.                     if (customafk_Get(i)<200 && PI[i][pWarns] == 0) {
  139.                         GiveDonate( i, 4 * payday_multiplier );
  140.                     }
  141.  
  142.                     if (PI[i][pDepozit]>5000)
  143.                     {
  144.                         if (IsLauncherConnected(i) || IsMobileConnected(i))
  145.                         {
  146.                             if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/770.0);
  147.                             else Bank = floatround(float(maxe)/770.0);
  148.                         }
  149.                         else
  150.                         {
  151.                             if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/800.0);
  152.                             else Bank = floatround(float(maxe)/800.0);
  153.                         }
  154.                     }
  155.                 }
  156.             }
  157.         }
  158.  
  159.         Bank *= payday_multiplier;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement