[POMOC]Levelup

Započeo L.U.X, April 19, 2011, 15:12:02 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Mod koji koristim:Raven's
Problem:Evo ovako u raven's kad skipute recimo 4 respecta koji vam trebaju za lvlup trebate kucat /levelup a kako da napravim da automatski prebavi na veci level...

stavi kod koi ti povecava lvl pod komandom /buylevel pod public PayDay


Možeš ti to ubacit evo public payday

public PayDay()
{
   new string[128];
   new account,interest;
   new rent = 0;
   for(new i = 0; i < MAX_PLAYERS; i++)
   {
      if(IsPlayerConnected(i) && !IsPlayerNPC(i))
      {
          if(PlayerInfo[pLevel] > 0)
          {
             if(MoneyMessage==1)
            {
                new bank = PlayerInfo[pAccount];
                SendClientMessage(i, COLOR_LIGHTRED, "U minusu si, pa ides u zavor.");
                GameTextForPlayer(i, "~r~Uhicen!", 2000, 1);
                SafeSetPlayerInterior(i, 6);
                  SafeSetPlayerPos(i, 264.6288,77.5742,1001.0391);
                  PlayerInfo[pJailed] = 1;
                  SafeResetPlayerWeapons(i);
                  SafeResetPlayerMoney(i);
               SafeGivePlayerMoney(i, 1);
               WantedPoints = 0;
               PlayerInfo[pAccount] = (bank + DebtMoney);
               DebtMoney = 0;
               PlayerInfo[pJailTime] = 240;
               TextDrawShowForPlayer(i, Textdraw1);
               format(string, sizeof(string), "Zatvoren si na %d sekunda.", PlayerInfo[pJailTime]);
               SendClientMessage(i, COLOR_WHITE, string);
            }
            new playername2[MAX_PLAYER_NAME];
            GetPlayerName(i, playername2, sizeof(playername2));
            account = PlayerInfo[pAccount];
            new key = PlayerInfo[pPhousekey];
            if(key != 999)
            {
               rent = HouseInfo[key][hRent];
               if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
               {
                  rent = 0;
               }
               else if(rent > GetPlayerMoney(i))
               {
                  PlayerInfo[pPhousekey] = 999;
                  SendClientMessage(i, COLOR_WHITE, "Izbacen si iz kuce.");
                  rent = 0;
               }
               HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent;
            }
            new tmpintrate;
            if (key != 999 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
            {
                if(PlayerInfo[pRegularRank] > 0) { tmpintrate = intrate+4; }
               else { tmpintrate = intrate+2; }//HouseInfo[key][hLevel]
            }
            else
            {
                if(PlayerInfo[pRegularRank] > 0) { tmpintrate = 3; }
               else { tmpintrate = 1; }
            }
            if(PlayerInfo[pPayDay] >= 5)
            {
                Tax += TaxValue;//Should work for every player online
                PlayerInfo[pAccount] -= TaxValue;
               new checks = PlayerInfo[pPayCheck] / 5;
               if(PlayerInfo[pRegularRank] > 0)
               {
                   new bonus = PlayerInfo[pPayCheck] / 10;
                   checks += bonus;
               }
                new ebill = (PlayerInfo[pAccount]/10000)*(PlayerInfo[pLevel]);
                account += checks;
                if(PlayerInfo[pAccount] > 0)
                {
                   PlayerInfo[pAccount] -= ebill;
                   SBizzInfo[4][sbTill] += ebill;
               }
               else
               {
                   ebill = 0;
               }
               interest = (PlayerInfo[pAccount]/1000)*(tmpintrate);
               PlayerInfo[pExp]++;
               PlayerPlayMusic(i);
               PlayerInfo[pAccount] = account+interest;
               SendClientMessage(i, COLOR_GREEN, "|___ LOS SANTOS BANKA ___|");
               format(string, sizeof(string), "  Profit: $%d   Najam: -$%d", checks, TaxValue);
               SendClientMessage(i, COLOR_WHITE, string);
               if(PlayerInfo[pPhousekey] != 999 || PlayerInfo[pPbiskey] != 255)
               {
                   format(string, sizeof(string), "  Rezije: -$%d", ebill);
                  SendClientMessage(i, COLOR_GRAD1, string);
               }
               format(string, sizeof(string), "  Iznos Racuna: $%d", account - checks);
               SendClientMessage(i, COLOR_WHITE, string);
               format(string, sizeof(string), "  Kamata: 0.%d posto",tmpintrate);
               SendClientMessage(i, COLOR_GRAD2, string);
               format(string, sizeof(string), "  Dobijeno od kamate $%d", interest);
               SendClientMessage(i, COLOR_GRAD3, string);
               SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|");
               format(string, sizeof(string), "  Novi iznos racuna: $%d", PlayerInfo[pAccount]);
               SendClientMessage(i, COLOR_GRAD5, string);
               format(string, sizeof(string), "  Rent: -$%d", rent);
               SendClientMessage(i, COLOR_GRAD5, string);
               format(string, sizeof(string), "~y~Placa~n~~w~Dobio si novce na svoj racun");
               GameTextForPlayer(i, string, 5000, 1);
               rent = 0;
               PlayerInfo[pPayDay] = 0;
               PlayerInfo[pPayCheck] = 0;
               if(FarmerVar == 0)
               {
                  FarmerPickup
  • = 0;
                   }
                   if(DrugFarmerVar == 0)
                   {
                      DrugFarmerPickup
    • = 0;
                     }
                     if(SmugglerWork == 0)
                     {
                        PayDaySecure = 0;
                     }
                     if(PlayerInfo[pRegularRank] > 0)
                     {
                         PlayerInfo[pPayDayHad] += 1;
                         if(PlayerInfo[pPayDayHad] >= 5)
                         {
                             PlayerInfo[pExp]++;
                             PlayerInfo[pPayDayHad] = 0;
                         }
                     }
                  }
                  else
                  {
                      SendClientMessage(i, COLOR_WHITE, "* Nisi igrao dovoljno dugo da bi dobio placu.");
                  }
               }
            }
         }
         SaveAccounts();
         Checkprop();
         new rand = random(1000); rand += 545;
           Jackpot += rand;
         SaveStuff();
         format(string, sizeof(string), "Loto Vijesti: Jackpot nagrada: $%d.", Jackpot);
         OOCOff(COLOR_WHITE, string);
         return 1;
      }


      I evo /levelup komanda

         if (strcmp(cmd, "/levelup", true) == 0)
         {
             if(IsPlayerConnected(playerid))
             {
               if (gPlayerLogged[playerid] != 0)
               {
                  /*PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);*/
                  if(PlayerInfo[playerid][pLevel] >= 0)
                  {
                     new nxtlevel = PlayerInfo[playerid][pLevel]+1;
                     /*new costlevel = nxtlevel*levelcost;//10k for testing purposes*/
                     new expamount = nxtlevel*levelexp;
                     new infostring[256];
                     /*if(GetPlayerMoney(playerid) < costlevel)
                     {
                        format(infostring, 256, "   You do not have enough Cash ($%d)!",costlevel);
                        SendClientMessage(playerid, COLOR_GRAD1, infostring);
                        return 1;
                     }*/
                     if (PlayerInfo[playerid][pExp] < expamount)
                     {
                        format(infostring, 256, "** Za level up potrebno vam je %d respecta, vi imate [%d] !",expamount,PlayerInfo[playerid][pExp]);
                        SendClientMessage(playerid, COLOR_GRAD1, infostring);
                        return 1;
                     }
                     else
                     {
                        format(string, sizeof(string), "~g~LEVEL UP~n~~w~Vi ste sad level %d", nxtlevel);
                        PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                        PlayerPlayMusic(playerid);
                        /*SafeGivePlayerMoney(playerid, (-costlevel));*/
                        PlayerInfo[playerid][pLevel]++;
                        if(PlayerInfo[playerid][pRegularRank] > 0)
                        {
                            PlayerInfo[playerid][pExp] -= expamount;
                            new total = PlayerInfo[playerid][pExp];
                            if(total > 0)
                            {
                                PlayerInfo[playerid][pExp] = total;
                            }
                            else
                            {
                                PlayerInfo[playerid][pExp] = 0;
                            }
                        }
                        else
                        {
                           PlayerInfo[playerid][pExp] = 0;
                        }
                        PlayerInfo[playerid][gPupgrade] = PlayerInfo[playerid][gPupgrade]+2;
                        GameTextForPlayer(playerid, string, 5000, 1);
                        format(infostring, 256, "   Vi ste sad level %d Upisite /upgrade", nxtlevel);
                        SendClientMessage(playerid, COLOR_GRAD1, infostring);
                        format(infostring, 256, "   You gave %d unspent Upgrade Points",PlayerInfo[playerid][gPupgrade]);
                        SendClientMessage(playerid, COLOR_GRAD2, infostring);
                        new y, m, d;
                        new h,mi,s;
                        getdate(y,m,d);
                        gettime(h,mi,s);
                        format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /levelup (%d)",d,m,y,h,mi,s,sendername,nxtlevel);
                        CommandLog(string);
                     }
                  }
                  return 1;
               }
               else
               {
                  SendClientMessage(playerid, COLOR_GRAD1, "   You are not Logged in !");
               }
            }
            return 1;
         }
Poslednja Izmena: April 19, 2011, 15:24:39 POSLE PODNE od Luka_Lučić

Kod: c
public PayDay()
{
   new string[128];
   new account,interest;
   new rent = 0;
   for(new i = 0; i < MAX_PLAYERS; i++)
   {
      if(IsPlayerConnected(i) && !IsPlayerNPC(i))
      {
          if(PlayerInfo[pLevel] > 0)
          {
         if(PlayerInfo[playerid][pLevel] >= 0)
            {
               new nxtlevel = PlayerInfo[playerid][pLevel]+1;
               /*new costlevel = nxtlevel*levelcost;//10k for testing purposes*/
               new expamount = nxtlevel*levelexp;
               new infostring[256];
               /*if(GetPlayerMoney(playerid) < costlevel)
               {
                  format(infostring, 256, "   You do not have enough Cash ($%d)!",costlevel);
                  SendClientMessage(playerid, COLOR_GRAD1, infostring);
                  return 1;
               }*/
               if (PlayerInfo[playerid][pExp] < expamount)
               {
                  format(infostring, 256, "** Za level up potrebno vam je %d respecta, vi imate [%d] !",expamount,PlayerInfo[playerid][pExp]);
                  SendClientMessage(playerid, COLOR_GRAD1, infostring);
                  return 1;
               }
               else
               {
                  format(string, sizeof(string), "~g~LEVEL UP~n~~w~Vi ste sad level %d", nxtlevel);
                  PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                  PlayerPlayMusic(playerid);
                  /*SafeGivePlayerMoney(playerid, (-costlevel));*/
                  PlayerInfo[playerid][pLevel]++;
                  if(PlayerInfo[playerid][pRegularRank] > 0)
                  {
                      PlayerInfo[playerid][pExp] -= expamount;
                      new total = PlayerInfo[playerid][pExp];
                      if(total > 0)
                      {
                          PlayerInfo[playerid][pExp] = total;
                      }
                      else
                      {
                          PlayerInfo[playerid][pExp] = 0;
                      }
                  }
                  else
                  {
                     PlayerInfo[playerid][pExp] = 0;
             }
             if(MoneyMessage==1)
            {
                new bank = PlayerInfo[pAccount];
                SendClientMessage(i, COLOR_LIGHTRED, "U minusu si, pa ides u zavor.");
                GameTextForPlayer(i, "~r~Uhicen!", 2000, 1);
                SafeSetPlayerInterior(i, 6);
                  SafeSetPlayerPos(i, 264.6288,77.5742,1001.0391);
                  PlayerInfo[pJailed] = 1;
                  SafeResetPlayerWeapons(i);
                  SafeResetPlayerMoney(i);
               SafeGivePlayerMoney(i, 1);
               WantedPoints = 0;
               PlayerInfo[pAccount] = (bank + DebtMoney);
               DebtMoney = 0;
               PlayerInfo[pJailTime] = 240;
               TextDrawShowForPlayer(i, Textdraw1);
               format(string, sizeof(string), "Zatvoren si na %d sekunda.", PlayerInfo[pJailTime]);
               SendClientMessage(i, COLOR_WHITE, string);
            }
            new playername2[MAX_PLAYER_NAME];
            GetPlayerName(i, playername2, sizeof(playername2));
            account = PlayerInfo[pAccount];
            new key = PlayerInfo[pPhousekey];
            if(key != 999)
            {
               rent = HouseInfo[key][hRent];
               if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
               {
                  rent = 0;
               }
               else if(rent > GetPlayerMoney(i))
               {
                  PlayerInfo[pPhousekey] = 999;
                  SendClientMessage(i, COLOR_WHITE, "Izbacen si iz kuce.");
                  rent = 0;
               }
               HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent;
            }
            new tmpintrate;
            if (key != 999 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
            {
                if(PlayerInfo[pRegularRank] > 0) { tmpintrate = intrate+4; }
               else { tmpintrate = intrate+2; }//HouseInfo[key][hLevel]
            }
            else
            {
                if(PlayerInfo[pRegularRank] > 0) { tmpintrate = 3; }
               else { tmpintrate = 1; }
            }
            if(PlayerInfo[pPayDay] >= 5)
            {
                Tax += TaxValue;//Should work for every player online
                PlayerInfo[pAccount] -= TaxValue;
               new checks = PlayerInfo[pPayCheck] / 5;
               if(PlayerInfo[pRegularRank] > 0)
               {
                   new bonus = PlayerInfo[pPayCheck] / 10;
                   checks += bonus;
               }
                new ebill = (PlayerInfo[pAccount]/10000)*(PlayerInfo[pLevel]);
                account += checks;
                if(PlayerInfo[pAccount] > 0)
                {
                   PlayerInfo[pAccount] -= ebill;
                   SBizzInfo[4][sbTill] += ebill;
               }
               else
               {
                   ebill = 0;
               }
               interest = (PlayerInfo[pAccount]/1000)*(tmpintrate);
               PlayerInfo[pExp]++;
               PlayerPlayMusic(i);
               PlayerInfo[pAccount] = account+interest;
               SendClientMessage(i, COLOR_GREEN, "|___ LOS SANTOS BANKA ___|");
               format(string, sizeof(string), "  Profit: $%d   Najam: -$%d", checks, TaxValue);
               SendClientMessage(i, COLOR_WHITE, string);
               if(PlayerInfo[pPhousekey] != 999 || PlayerInfo[pPbiskey] != 255)
               {
                   format(string, sizeof(string), "  Rezije: -$%d", ebill);
                  SendClientMessage(i, COLOR_GRAD1, string);
               }
               format(string, sizeof(string), "  Iznos Racuna: $%d", account - checks);
               SendClientMessage(i, COLOR_WHITE, string);
               format(string, sizeof(string), "  Kamata: 0.%d posto",tmpintrate);
               SendClientMessage(i, COLOR_GRAD2, string);
               format(string, sizeof(string), "  Dobijeno od kamate $%d", interest);
               SendClientMessage(i, COLOR_GRAD3, string);
               SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|");
               format(string, sizeof(string), "  Novi iznos racuna: $%d", PlayerInfo[pAccount]);
               SendClientMessage(i, COLOR_GRAD5, string);
               format(string, sizeof(string), "  Rent: -$%d", rent);
               SendClientMessage(i, COLOR_GRAD5, string);
               format(string, sizeof(string), "~y~Placa~n~~w~Dobio si novce na svoj racun");
               GameTextForPlayer(i, string, 5000, 1);
               rent = 0;
               PlayerInfo[pPayDay] = 0;
               PlayerInfo[pPayCheck] = 0;
               if(FarmerVar == 0)
               {
                  FarmerPickup
= 0;
               }
               if(DrugFarmerVar == 0)
               {
                  DrugFarmerPickup
= 0;
               }
               if(SmugglerWork == 0)
               {
                  PayDaySecure = 0;
               }
               if(PlayerInfo[pRegularRank] > 0)
               {
                   PlayerInfo[pPayDayHad] += 1;
                   if(PlayerInfo[pPayDayHad] >= 5)
                   {
                       PlayerInfo[pExp]++;
                       PlayerInfo[pPayDayHad] = 0;
                   }
               }
            }
            else
            {
                SendClientMessage(i, COLOR_WHITE, "* Nisi igrao dovoljno dugo da bi dobio placu.");
            }
         }
      }
   }
   SaveAccounts();
   Checkprop();
   new rand = random(1000); rand += 545;
      Jackpot += rand;
    SaveStuff();
    format(string, sizeof(string), "Loto Vijesti: Jackpot nagrada: $%d.", Jackpot);
   OOCOff(COLOR_WHITE, string);
   return 1;
}



evo ispravljeno
Kod: c
public PayDay()
{
   new string[128];
   new account,interest;
   new rent = 0;
   for(new i = 0; i < MAX_PLAYERS; i++)
   {
      if(IsPlayerConnected(i) && !IsPlayerNPC(i))
      {
          if(PlayerInfo[pLevel] > 0)
          {
         if(PlayerInfo[i][pLevel] >= 0)
            {
               new nxtlevel = PlayerInfo[i][pLevel]+1;
               /*new costlevel = nxtlevel*levelcost;//10k for testing purposes*/
               new expamount = nxtlevel*levelexp;
               new infostring[256];
               /*if(GetPlayerMoney(i) < costlevel)
               {
                  format(infostring, 256, "   You do not have enough Cash ($%d)!",costlevel);
                  SendClientMessage(i, COLOR_GRAD1, infostring);
                  return 1;
               }*/
               if (PlayerInfo[i][pExp] < expamount)
               {
                  format(infostring, 256, "** Za level up potrebno vam je %d respecta, vi imate [%d] !",expamount,PlayerInfo[i][pExp]);
                  SendClientMessage(i, COLOR_GRAD1, infostring);
                  return 1;
               }
               else
               {
                  format(string, sizeof(string), "~g~LEVEL UP~n~~w~Vi ste sad level %d", nxtlevel);
                  PlayerPlaySound(i, 1052, 0.0, 0.0, 0.0);
                  PlayerPlayMusic(i);
                  /*SafeGivePlayerMoney(i, (-costlevel));*/
                  PlayerInfo[i][pLevel]++;
                  if(PlayerInfo[i][pRegularRank] > 0)
                  {
                      PlayerInfo[i][pExp] -= expamount;
                      new total = PlayerInfo[i][pExp];
                      if(total > 0)
                      {
                          PlayerInfo[i][pExp] = total;
                      }
                      else
                      {
                          PlayerInfo[i][pExp] = 0;
                      }
                  }
                  else
                  {
                     PlayerInfo[i][pExp] = 0;
             }
             if(MoneyMessage==1)
            {
                new bank = PlayerInfo[pAccount];
                SendClientMessage(i, COLOR_LIGHTRED, "U minusu si, pa ides u zavor.");
                GameTextForPlayer(i, "~r~Uhicen!", 2000, 1);
                SafeSetPlayerInterior(i, 6);
                  SafeSetPlayerPos(i, 264.6288,77.5742,1001.0391);
                  PlayerInfo[pJailed] = 1;
                  SafeResetPlayerWeapons(i);
                  SafeResetPlayerMoney(i);
               SafeGivePlayerMoney(i, 1);
               WantedPoints = 0;
               PlayerInfo[pAccount] = (bank + DebtMoney);
               DebtMoney = 0;
               PlayerInfo[pJailTime] = 240;
               TextDrawShowForPlayer(i, Textdraw1);
               format(string, sizeof(string), "Zatvoren si na %d sekunda.", PlayerInfo[pJailTime]);
               SendClientMessage(i, COLOR_WHITE, string);
            }
            new playername2[MAX_PLAYER_NAME];
            GetPlayerName(i, playername2, sizeof(playername2));
            account = PlayerInfo[pAccount];
            new key = PlayerInfo[pPhousekey];
            if(key != 999)
            {
               rent = HouseInfo[key][hRent];
               if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
               {
                  rent = 0;
               }
               else if(rent > GetPlayerMoney(i))
               {
                  PlayerInfo[pPhousekey] = 999;
                  SendClientMessage(i, COLOR_WHITE, "Izbacen si iz kuce.");
                  rent = 0;
               }
               HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent;
            }
            new tmpintrate;
            if (key != 999 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
            {
                if(PlayerInfo[pRegularRank] > 0) { tmpintrate = intrate+4; }
               else { tmpintrate = intrate+2; }//HouseInfo[key][hLevel]
            }
            else
            {
                if(PlayerInfo[pRegularRank] > 0) { tmpintrate = 3; }
               else { tmpintrate = 1; }
            }
            if(PlayerInfo[pPayDay] >= 5)
            {
                Tax += TaxValue;//Should work for every player online
                PlayerInfo[pAccount] -= TaxValue;
               new checks = PlayerInfo[pPayCheck] / 5;
               if(PlayerInfo[pRegularRank] > 0)
               {
                   new bonus = PlayerInfo[pPayCheck] / 10;
                   checks += bonus;
               }
                new ebill = (PlayerInfo[pAccount]/10000)*(PlayerInfo[pLevel]);
                account += checks;
                if(PlayerInfo[pAccount] > 0)
                {
                   PlayerInfo[pAccount] -= ebill;
                   SBizzInfo[4][sbTill] += ebill;
               }
               else
               {
                   ebill = 0;
               }
               interest = (PlayerInfo[pAccount]/1000)*(tmpintrate);
               PlayerInfo[pExp]++;
               PlayerPlayMusic(i);
               PlayerInfo[pAccount] = account+interest;
               SendClientMessage(i, COLOR_GREEN, "|___ LOS SANTOS BANKA ___|");
               format(string, sizeof(string), "  Profit: $%d   Najam: -$%d", checks, TaxValue);
               SendClientMessage(i, COLOR_WHITE, string);
               if(PlayerInfo[pPhousekey] != 999 || PlayerInfo[pPbiskey] != 255)
               {
                   format(string, sizeof(string), "  Rezije: -$%d", ebill);
                  SendClientMessage(i, COLOR_GRAD1, string);
               }
               format(string, sizeof(string), "  Iznos Racuna: $%d", account - checks);
               SendClientMessage(i, COLOR_WHITE, string);
               format(string, sizeof(string), "  Kamata: 0.%d posto",tmpintrate);
               SendClientMessage(i, COLOR_GRAD2, string);
               format(string, sizeof(string), "  Dobijeno od kamate $%d", interest);
               SendClientMessage(i, COLOR_GRAD3, string);
               SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|");
               format(string, sizeof(string), "  Novi iznos racuna: $%d", PlayerInfo[pAccount]);
               SendClientMessage(i, COLOR_GRAD5, string);
               format(string, sizeof(string), "  Rent: -$%d", rent);
               SendClientMessage(i, COLOR_GRAD5, string);
               format(string, sizeof(string), "~y~Placa~n~~w~Dobio si novce na svoj racun");
               GameTextForPlayer(i, string, 5000, 1);
               rent = 0;
               PlayerInfo[pPayDay] = 0;
               PlayerInfo[pPayCheck] = 0;
               if(FarmerVar == 0)
               {
                  FarmerPickup
= 0;
               }
               if(DrugFarmerVar == 0)
               {
                  DrugFarmerPickup
= 0;
               }
               if(SmugglerWork == 0)
               {
                  PayDaySecure = 0;
               }
               if(PlayerInfo[pRegularRank] > 0)
               {
                   PlayerInfo[pPayDayHad] += 1;
                   if(PlayerInfo[pPayDayHad] >= 5)
                   {
                       PlayerInfo[pExp]++;
                       PlayerInfo[pPayDayHad] = 0;
                   }
               }
            }
            else
            {
                SendClientMessage(i, COLOR_WHITE, "* Nisi igrao dovoljno dugo da bi dobio placu.");
            }
         }
      }
   }
   SaveAccounts();
   Checkprop();
   new rand = random(1000); rand += 545;
      Jackpot += rand;
    SaveStuff();
    format(string, sizeof(string), "Loto Vijesti: Jackpot nagrada: $%d.", Jackpot);
   OOCOff(COLOR_WHITE, string);
   return 1;
}