Plata

Započeo Jack Mapping, Jun 10, 2017, 18:51:42 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:NARPG v1.0
Detaljan opis problema: Nema nikakav problem htio bi da mi neko pomogne kako da namalim plate sad su po 100k da budu do 50k?
Dio skripte: ukoliko je potrebno stavicu sada ne znam koji del treba objaviti
Neke slike/video za lakse dobivanje pomoci(neobavezno): //

Daj dio taj gdje daje pare od plate.

[pawn]public PayDay()
{
    new bok[128];
    new bok1[128];
    new bok2[128];
    new bok3[128];
    new bok4[128];
    new bok5[128];
    new bok6[128];
    new bok7[128];
    new bok8[128];
    new bok9[128];
    new bok10[128];
   new string[512];
   new account,interest;
   new rent = 0;
   for(new i = 0; i < MAX_PLAYERS; i++)
   {
      if(IsPlayerConnected(i))
      {
          if(PlayerInfo[pLevel] > 0)
          {
            new playername2[MAX_PLAYER_NAME];
            GetPlayerName(i, playername2, sizeof(playername2));
            account = PlayerInfo[pAccount];
            new tmpintrate;
            if(PlayerInfo[pPayDay] >= 5)
            {
                Tax += TaxValue;
                PlayerInfo[pAccount] -= TaxValue;
                if(PlayerInfo[pDonateRank] > 0)
               {
                   new bonus = PlayerInfo[pPayCheck] / 2;
                   PlayerInfo[pPayCheck] += bonus;
               }
               new checks = PlayerInfo[pPayCheck];
                    if(PlayerInfo[pPosedovanjeKuce] != 0 || PlayerInfo[pPosedovanjeStana] != 0 || PlayerInfo[pPosedovanjeVikendice] != 0)
               {
                  new smetka1 = 200+random(500);
                  new smetka2 = 200+random(600);
                  new smetka3 = 200+random(600);
                  new smetka4 = 200+random(500);
                  PlayerInfo[pStruja] += smetka1;
                  PlayerInfo[pVoda] += smetka2;
                  PlayerInfo[pKomunalno] += smetka3;
                  PlayerInfo[pTelevizor] += smetka4;
               }
                ConsumingMoney = 1;
                GivePlayerMoney(i, checks);
               interest = (PlayerInfo[pAccount]/1000)*(tmpintrate);
               PlayerPlayMusic(i);
               PlayerInfo[pAccount] = account+interest;
//------------------------------------------------------------------------------
                    if(PlayerInfo[pPosedovanjeKuce] != 0 || PlayerInfo[pPosedovanjeStana] != 0 || PlayerInfo[pPosedovanjeVikendice] != 0)
               {
                  format(bok, sizeof(bok),  "\nIsplata: %d\nTaksa-: %d\n", checks, TaxValue);
                  format(bok2, sizeof(bok2), "Smetka: $%d\n", account - checks);
                  format(bok3, sizeof(bok3), "Kamatna Stapka: 0.%d\n",tmpintrate);
                  format(bok4, sizeof(bok4), "Interest Pridobivka: $%d\n", interest);
                  format(bok5, sizeof(bok5), "Rent: -$%d\n", rent);
                  format(bok6, sizeof(bok6), "Nova Smetka: $%d\n", PlayerInfo[pAccount]);
                  format(bok7, sizeof(bok7), "Smetka za struja: $%d\n", PlayerInfo[pStruja]);
                  format(bok8, sizeof(bok8), "Smetka za voda: $%d\n", PlayerInfo[pVoda]);
                  format(bok9, sizeof(bok9), "Smetka za komulana: $%d\n", PlayerInfo[pKomunalno]);
                  format(bok10, sizeof(bok10), "Smetka za televizija: $%d\n", PlayerInfo[pTelevizor]);
                  format(string, 512,"%s%s%s%s%s%s%s%s%s%s%s",bok,bok1,bok2,bok3,bok4,bok5,bok6,bok7,bok8,bok9,bok10);
                   ShowPlayerDialog(i, PAYDAYMENU, DIALOG_STYLE_MSGBOX, "Plata", string , "OK", "");
               }
               else
               {
                  format(bok, sizeof(bok),  "\nIsplata: %d\nTaksa-: %d\n", checks, TaxValue);
                  format(bok2, sizeof(bok2), "Smetka: $%d\n", account - checks);
                  format(bok3, sizeof(bok3), "Kamatna Stapka: 0.%d\n",tmpintrate);
                  format(bok4, sizeof(bok4), "Interest Pridobivka: $%d\n", interest);
                  format(bok5, sizeof(bok5), "Rent: -$%d\n", rent);
                  format(bok6, sizeof(bok6), "Nova Smetka: $%d\n", PlayerInfo[pAccount]);
                  format(string, 512,"%s%s%s%s%s%s%s",bok,bok1,bok2,bok3,bok4,bok5,bok6);
                   ShowPlayerDialog(i, PAYDAYMENU, DIALOG_STYLE_MSGBOX, "Plata", string , "OK", "");
               }
               if(lcnpoeni > yakuzapoeni)
               {
                  if(PlayerInfo[pMember] == 5 || PlayerInfo[pLeader] == 5)
                  {
                     SendClientMessage(i, COLOR_GRAD1,"{FF6347}[Kristal]:{FFFFFF} Dodeleni vi se $25,000 bidejki vasata familija e vo vodstvo");
                     GivePlayerMoney(i, 20000);
                  }
               }
               else if(yakuzapoeni > lcnpoeni)
               {
                  if(PlayerInfo[pMember] == 6 || PlayerInfo[pLeader] == 6)
                  {
                     SendClientMessage(i, COLOR_GRAD1,"{FF6347}[Kristal]:{FFFFFF} Dodeleni vi se $25,000 bidejki vasata familija e vo vodstvo");
                     GivePlayerMoney(i, 20000);
                  }
               }
               if(PlayerInfo[pStruja] >= 150000)
               {
                  format(string, sizeof(string), "(NA)Server go kazni igracot %s so paricna kazna od $150.000 poradi neplatena smetka za struja", ImeIgraca(i));
                  SendClientMessageToAll(COLOR_LIGHTRED, string);
                  GivePlayerMoney(i, -150000);
               }
               if(PlayerInfo[pVoda] >= 150000)
               {
                  format(string, sizeof(string), "(NA)Server go kazni igracot %s so paricna kazna od $150.000 poradi neplatena smetka za voda", ImeIgraca(i));
                  SendClientMessageToAll(COLOR_LIGHTRED, string);
                  GivePlayerMoney(i, -150000);
               }
               if(PlayerInfo[pKomunalno] >= 150000)
               {
                  format(string, sizeof(string), "(NA)Server go kazni igracot %s so paricna kazna od $150.000 poradi neplatena smetka za komunalno", ImeIgraca(i));
                  SendClientMessageToAll(COLOR_LIGHTRED, string);
                  GivePlayerMoney(i, -150000);
               }
               if(PlayerInfo[pTelevizor] >= 150000)
               {
                  format(string, sizeof(string), "(NA)Server go kazni igracot %s so paricna kazna od $150.000 poradi neplatena smetka za televizija", ImeIgraca(i));
                  SendClientMessageToAll(COLOR_LIGHTRED, string);
                  GivePlayerMoney(i, -150000);
               }
                    if(PlayerInfo[pVipRank] == 1)
                    {
                        GivePlayerMoney(i,20000);
                        PlayerInfo[pExp] += 50;
                        SendClientMessage(i, COLOR_GREY, "{FF0000}[INFO]:{FFFFFF}Dodeleni vi se 20,000$ i 50exp bidejki ste VIP RANK 1.");
                    }
                    if(PlayerInfo[pVipRank] == 2)
                    {
                        GivePlayerMoney(i,50000);
                        PlayerInfo[pExp] += 100;
                        SendClientMessage(i, COLOR_GREY, "{FF0000}[INFO]:{FFFFFF}Dodeleni vi se 50,000$ i 100exp bidejki ste VIP RANK 2.");
                    }
               if(PlayerInfo[pMember] == 1 || PlayerInfo[pLeader] == 1 || PlayerInfo[pMember] == 2 || PlayerInfo[pLeader] == 3 || PlayerInfo[pMember] == 3 || PlayerInfo[pLeader] == 3)
               {
                   if(PlayerInfo[pRank] == 1)
                   {
                     SCM(i, -1, "{FF0000}[INFO]:{FFFFFF}MVR vi isplati 800$ na vasata smetka");
                     GivePlayerMoney(i, 800);
                  }
                   else if(PlayerInfo[pRank] == 2)
                   {
                     SCM(i, -1, "{FF0000}[INFO]:{FFFFFF}MVR vi isplati 100$ na vasata smetka");
                     GivePlayerMoney(i, 1000);
                  }
                   else if(PlayerInfo[pRank] == 3)
                   {
                     SCM(i, -1, "{FF0000}[INFO]:{FFFFFF}MVR vi isplati 1200$ na vasata smetka");
                     GivePlayerMoney(i, 1200);
                  }
                     else if(PlayerInfo[pRank] == 4)
                   {
                     SCM(i, -1, "{FF0000}[INFO]:{FFFFFF}MVR vi isplati 1300$ na vasata smetka");
                     GivePlayerMoney(i, 1300);
                  }
                     else if(PlayerInfo[pRank] == 5)
                   {
                     SCM(i, -1, "{FF0000}[INFO]:{FFFFFF}MVR vi isplati 1400$ na vasata smetka");
                     GivePlayerMoney(i, 1400);
                  }
                      else if(PlayerInfo[pRank] == 6)
                   {
                     SCM(i, -1, "{FF0000}[INFO]:{FFFFFF}MVR vi isplati 1500$ na vasata smetka");
                     GivePlayerMoney(i, 1500);
                  }
               }
//------------------------------------------------------------------------------
               GameTextForPlayer(i, "~y~Plata", 5000, 1);
               rent = 0;
                   robtimerm = 0;
                   robtimerd = 0;
                   robtimerp = 0;
                   robtimers = 0;
                   SetTimer("ObloPovtorno",10,0);
                   SetTimer("Robanjenarodnapak",10,0);
                   SetTimer("Robanjencbankapak",10,0);
               PlayerInfo[pPayDay] = 0;
               PlayerInfo[pPayCheck] = 0;
               PlayerInfo[pConnectTime] += 1;
               if(PlayerInfo[pDonateRank] > 0)
               {
                   PlayerInfo[pPayDayHad] += 1;
                   if(PlayerInfo[pPayDayHad] >= 5)
                   {
                       PlayerInfo[pPayDayHad] = 0;
                   }
               }
            }
            else
            {
                SendClientMessage(i, COLOR_LIGHTRED, "* Nemate igrano dovolno za da dobiete plata.");
            }
         }
      }
   }
   return 1;
}[/pawn]