Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new
- payday_multiplier = xpayday;
- if (payday_multiplier < 1) {
- // количество PayDay'ев
- payday_multiplier = 1;
- }
- new
- Bank = 0,
- VIP = PI[i][pVIP];
- if (PI[i][pCredit] == 0 && PI[i][pView] == 0) // если нет кредита и не в деморгане
- {
- new fam = PI[i][pFMember];
- new maxe = 100_000_000;
- if (fam !=-1)
- {
- if (FInfo[fam][fBest][6]!=0) {
- maxe = 200_000_000;
- }
- }
- switch (VIP)
- {
- case STATUS_NONE:
- {
- if (PI[i][pDepozit]>5000)
- {
- if (IsLauncherConnected(i) || IsMobileConnected(i))
- {
- if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/1450.0);
- else Bank = floatround(float(maxe)/1450.0);
- }
- else
- {
- if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/1500.0);
- else Bank = floatround(float(maxe)/1500.0);
- }
- }
- }
- case STATUS_VIP:
- {
- if (PI[i][pDepozit]>5000)
- {
- if (IsLauncherConnected(i) || IsMobileConnected(i))
- {
- if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/1350.0);
- else Bank = floatround(float(maxe)/1350.0);
- }
- else
- {
- if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/1400.0);
- else Bank = floatround(float(maxe)/1400.0);
- }
- }
- }
- case STATUS_GOLD:
- {
- if (PI[i][pDepozit]>5000)
- {
- if (IsLauncherConnected(i) || IsMobileConnected(i))
- {
- if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/1250.0);
- else Bank = floatround(float(maxe)/1250.0);
- }
- else
- {
- if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/1300.0);
- else Bank = floatround(float(maxe)/1300.0);
- }
- }
- }
- case 3:
- {
- PI[i][pExp] += 1 * payday_multiplier;
- if (PI[i][pDepozit]>5000)
- {
- if (IsLauncherConnected(i) || IsMobileConnected(i))
- {
- if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/1200.0);
- else Bank = floatround(float(maxe)/1200.0);
- }
- else
- {
- if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/1250.0);
- else Bank = floatround(float(maxe)/1250.0);
- }
- }
- }
- case 4:
- {
- PI[i][pExp] += 1 * payday_multiplier;
- if (PI[i][pDepozit]>5000)
- {
- if (IsLauncherConnected(i) || IsMobileConnected(i))
- {
- if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/1150.0);
- else Bank = floatround(float(maxe)/1150.0);
- }
- else
- {
- if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/1200.0);
- else Bank = floatround(float(maxe)/1200.0);
- }
- }
- }
- case 5:
- {
- PI[i][pExp] += 1 * payday_multiplier;
- if (customafk_Get(i)<200 && PI[i][pWarns] == 0) {
- GiveDonate( i, 2 * payday_multiplier );
- }
- if (PI[i][pDepozit]>5000)
- {
- if (IsLauncherConnected(i) || IsMobileConnected(i))
- {
- if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/1100.0);
- else Bank = floatround(float(maxe)/1100.0);
- }
- else
- {
- if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/1150.0);
- else Bank = floatround(float(maxe)/1150.0);
- }
- }
- }
- case 6:
- {
- PI[i][pExp] += 1 * payday_multiplier;
- if (customafk_Get(i)<200 && PI[i][pWarns] == 0) {
- GiveDonate( i, 4 * payday_multiplier );
- }
- if (PI[i][pDepozit]>5000)
- {
- if (IsLauncherConnected(i) || IsMobileConnected(i))
- {
- if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/770.0);
- else Bank = floatround(float(maxe)/770.0);
- }
- else
- {
- if (PI[i][pDepozit]<maxe) Bank = floatround(float(PI[i][pDepozit])/800.0);
- else Bank = floatround(float(maxe)/800.0);
- }
- }
- }
- }
- }
- Bank *= payday_multiplier;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement