[Pomoc]Oko pljacke...

Započeo [BURPG] Wistaa, Septembar 17, 2011, 20:36:43 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Molio bi svakoga ko moze da pomogne o ovom' bugu,jer je jedini kojeg imam na serveru izgleda lagan,ali nezz u cemu je problem
Editujem: Raven's
Opis problema: Ako npr sada 2 igraca dodju da pljackaju alhambru ili banku prvom nece nisto doci sto se tice novca,a drugome koji je poceo da pljacka dolazi novac neprestano,dok u drugome slucaju ako sam igrac dodje sve bude u redu evo dio skripte

Dio Skripte:
}

   if(strcmp(cmd, "/robalhambra", true) == 0)
   {
        if(PlayerInfo[playerid][pMask] == 0)
      {
           SendClientMessage(playerid, COLOR_GRAD1, "** Da bi mogao pljackati moras imati masku");
           return 1;
      }
      new success = random(2);
       if(AlhambraRobbedRecently == 1)
      {
          SendClientMessage(playerid, COLOR_GREY, "* Ova lokacija je nedavno opljackana, pokusajte kasnije");
          return 1;
      }
      if(PlayerInfo[playerid][pRobTime] >= 1)
      {
          SendClientMessage(playerid, COLOR_GREY, "* Nedavno ste pokusali ili uspjesno nesto opljackali, molimo sacekajte.");
          return 1;
      }
       if(IsPlayerInRangeOfPoint(playerid, 2, 499.6341,-20.3592,1000.6797))
       {
           if(GetPlayerWeapon(playerid) >= 24 && GetPlayerWeapon(playerid) <= 40)
         {
              if(PlayerInfo[playerid][pDuty] == 0)
            {
                 if(success == 1)
               {
                    SendClientMessage(playerid, COLOR_ORANGE, "* Sada pljackate Alhambra Club, ostanite u checkpointu 45 Sekundi!");
                       RobbingTime[playerid] = 45;
                  RobAlhambraTimer = SetTimerEx("RobAlhambra",1000,true,"i",playerid);
                     WantedPoints[playerid] = 5;
                     SetPlayerCriminal(playerid,255, "Pljacka Alhambra Club-a");
                     PlayerInfo[playerid][pRobTime] = 900;
                     AlhambraRobbedRecently = 0;
                  SetTimer("UnsetAlhambraRob",1500000,false);
                  OnePlayAnim(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); // Rob Lookout
               }
               else
               {
                   SendClientMessage(playerid, COLOR_ORANGE, "* Niste uspijeli opljackati Alhambra Club!");
                   WantedPoints[playerid] = 2;
                     SetPlayerCriminal(playerid,255, "Pokusaj pljacke Alhambra Club-a");
                  PlayerInfo[playerid][pRobTime] = 500;
               }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "* Ne smijete biti na dužnosti!");
                return 1;
            }
         }
         else
         {
             SendClientMessage(playerid, COLOR_GREY, "* Morate imati vatreno oruzje da bi pokusali nesto ovakvo!");
             return 1;
         }
      }
      else
      {
          SendClientMessage(playerid, COLOR_GREY, "* Niste na mjestu pljacke!");
          return 1;
      }
      return 1;

Eh sada sledece kada treba dobiti novac:

}

public RobAlhambra(playerid)
{
   new string[128];
   if(IsPlayerInRangeOfPoint(playerid, 2,499.6341,-20.3592,1000.6797))
   {
      if(RobbingTime[playerid] > 0)
      {
          RobbingTime[playerid] --;
          GameTextForPlayer(playerid, "~w~Pricekajte za otvaranje kase ~r~Za novac ~w~do kraja vremena!", 1000,4);
      }
      else
      {
          RobbingTime[playerid] = 0;
          KillTimer(RobAlhambraTimer);
         new money = random(1000);
          SafeGivePlayerMoney(playerid, money);
         format(string, sizeof(string),"~w~Opljackali ste ~g~$%d ~w~Iz ~y~Alhambra Club!", money);
         GameTextForPlayer(playerid, string, 6000, 4);
         format(string, sizeof(string),"* Opljackali ste $%d Iz Alhambra Club!",money);
         SendClientMessage(playerid, COLOR_GREY, string);
         WantedPoints[playerid] = 10;
         SetPlayerCriminal(playerid,255, "Opljackana Alhambra Club");
      }
   }
   else
   {
        GameTextForPlayer(playerid, "~w~Napustio si Checkpoint!", 1000,4);
        RobbingTime[playerid] = 0;
      KillTimer(RobAlhambraTimer);
   }




Balkan Ulice RPG opis servera: Click



-Tutorial za mijesanje ID-ova na vozilima: Click