[REÅ ENO] Nece da oroba banku

Započeo Jockz_Corleone, Maj 26, 2016, 13:14:15 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: Moja
Detaljan opis problema: Imam u skripti system robanja banke i sada kada ja udjem IG i idem da robam banku, izbaci mi sve ono pljackate banku sacekajte 180 sekundi! I ja cekam 3 minuta nece, cekam 5 minuta nece, i ne znam zasto nece u skripti mi je podeseno RobbingTime[playerid] = 180;
Dio skripte: Evo skripte: http://pastebin.com/eJ5FrEA5
Neke slike/video za lakse dobivanje pomoci(neobavezno): /
Poslednja Izmena: Maj 26, 2016, 19:09:44 POSLE PODNE od â–… â–† â–ˆ Rudimental â–ˆ â–† â–…

Trebalo bi sada da bude ok usput pogledaj i kako sam sredio tj. sta sam izmenio da bi znao do cega je bio problem.
[pawn]
forward RobBank(playerid);
public RobBank(playerid)
{
   new string[128];
   if(IsPlayerInRangeOfPoint(playerid, 6, 1441.3519,-998.8107,26.8315))
   {
       if (RobbingTime[playerid] > 0)
      {
          RobbingTime[playerid] -= 1;
          format(string, sizeof(string),"~w~Ostanite u sefu jos ~r~%d ~w~sekundi !", RobbingTime[playerid]);
         GameTextForPlayer(playerid, string, 1000, 4);
         if (RobbingTime[playerid] <= 0)
          {
             new money = random(500);
             RobbingTime[playerid] = 0;
             KillTimer(RobBankTimer);
             g_NovacPlus(playerid, 35000+money);
            format(string, sizeof(string),"~w~Opljackali ste banku i uzeli ~g~%d$ !", money+35000);
            SetPlayerAttachedObject( playerid, 0, 1550, 1, -0.008714, -0.188819, -0.026564, 159.138153, 86.558647, 0.000000, 1.005565, 0.984468, 1.014210 ); // CJ_MONEY_BAG -
            GameTextForPlayer(playerid, string, 6000, 4);
            PlayerInfo[playerid][pTrazeniLevel] = 5;
            PostaviWanted(playerid, "Pljacka", "Alfa Banka");
            format(string, sizeof(string),"[PKRP]"PLAVA" Opljackali ste banku i uzeli %d$ !",money+35000);
            TogglePlayerControllable(playerid, 1);
            SavePlayer(playerid);
            SendClientMessage(playerid, -1, string);
         }
      }
      
   }
   else
   {
        GameTextForPlayer(playerid, "~w~Otisli ste sa pickup!", 1000,4);
        RobbingTime[playerid] = 0;
      KillTimer(RobBankTimer);
   }
}
[/pawn]

Citat: â–... â–† â–ˆ Rudimental â–ˆ â–† â–... poslato Maj 26, 2016, 13:34:21 POSLE PODNE
Trebalo bi sada da bude ok usput pogledaj i kako sam sredio tj. sta sam izmenio da bi znao do cega je bio problem.
[pawn]
forward RobBank(playerid);
public RobBank(playerid)
{
   new string[128];
   if(IsPlayerInRangeOfPoint(playerid, 6, 1441.3519,-998.8107,26.8315))
   {
       if (RobbingTime[playerid] > 0)
      {
          RobbingTime[playerid] -= 1;
          format(string, sizeof(string),"~w~Ostanite u sefu jos ~r~%d ~w~sekundi !", RobbingTime[playerid]);
         GameTextForPlayer(playerid, string, 1000, 4);
         if (RobbingTime[playerid] <= 0)
          {
             new money = random(500);
             RobbingTime[playerid] = 0;
             KillTimer(RobBankTimer);
             g_NovacPlus(playerid, 35000+money);
            format(string, sizeof(string),"~w~Opljackali ste banku i uzeli ~g~%d$ !", money+35000);
            SetPlayerAttachedObject( playerid, 0, 1550, 1, -0.008714, -0.188819, -0.026564, 159.138153, 86.558647, 0.000000, 1.005565, 0.984468, 1.014210 ); // CJ_MONEY_BAG -
            GameTextForPlayer(playerid, string, 6000, 4);
            PlayerInfo[playerid][pTrazeniLevel] = 5;
            PostaviWanted(playerid, "Pljacka", "Alfa Banka");
            format(string, sizeof(string),"[PKRP]"PLAVA" Opljackali ste banku i uzeli %d$ !",money+35000);
            TogglePlayerControllable(playerid, 1);
            SavePlayer(playerid);
            SendClientMessage(playerid, -1, string);
         }
      }
      
   }
   else
   {
        GameTextForPlayer(playerid, "~w~Otisli ste sa pickup!", 1000,4);
        RobbingTime[playerid] = 0;
      KillTimer(RobBankTimer);
   }
}
[/pawn]
Hvala ti radi :)