Trebam pomoč oko /rentmoto

Započeo abson, Februar 24, 2012, 11:16:22 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Ovako, ako i iko može pomoči oko /rentmoto komande ukucam/renmoto ali ništa se nedesi msm da je problem sa idovima ali neznam riješit ako ko može pomoči bio bih zahvalan riječ je o faggiu id 462 ispod sam priložio komandu


   if(strcmp(cmd, "/rentmoto", true) == 0)
   {
        if(IsPlayerConnected(playerid))
      {
         if(GetPlayerVehicleID(playerid) >= 144 && GetPlayerVehicleID(playerid) <= 144)
         {
            new hirefee = HireCost(GetPlayerVehicleID(playerid));
            if(SBizzInfo[0][sbProducts] == 0)
            {
               GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 1);
               return 1;
            }
            /*if(PlayerInfo[playerid][pPbiskey] == 0)
            {
               GameTextForPlayer(playerid, "~w~No charge for the boss", 5000, 3);
               TogglePlayerControllable(playerid, 1);
               return 1;
            }*/
            if (GetPlayerMoney(playerid) <  SBizzInfo[0][sbEntranceCost])
            {
               SendClientMessage(playerid, COLOR_GRAD2, "Nemate dovoljno novca !");
               return 1;
            }
            if(HireCar[playerid] != 299)
            {
               gCarLock[HireCar[playerid]] = 0;
               UnLockCar(HireCar[playerid]);
               SendClientMessage(playerid, COLOR_GREY, "Morate prvo da vratite iznajmljeni auto/motor/camac !");
               return 1;
            }
            foreach (Player, i)
            {
                if(HireCar == GetPlayerVehicleID(playerid))
                {
                    SendClientMessage(playerid, COLOR_GREY, "Neko je vec iznajmio ovaj motor !");
                    return 1;
                }
            }
            GivePlayerCash(playerid,-SBizzInfo[0][sbEntranceCost]);
            SBizzInfo[0][sbTill] += SBizzInfo[0][sbEntranceCost];
            ExtortionSBiz(0, SBizzInfo[0][sbEntranceCost]);
            SBizzInfo[0][sbProducts]--;
            HireCar[playerid] = GetPlayerVehicleID(playerid);
            OnPropUpdate();
            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
            format(string, sizeof(string), "Iznajmili ste vozilo sada samo vi mozete voziti ovo vozilo.",hirefee);
            SendClientMessage(playerid, BELA, string);
            TogglePlayerControllable(playerid, 1);
            gEngine[GetPlayerVehicleID(playerid)] = 1;
            GameTextForPlayer(playerid, string, 5000, 3);
         }
      }
      return 1;
   }


Marko Neradisada sam probao ali oept ništa! ako moež pomoč


http://balkan-samp.com/forum/index.php?topic=11453.0 ...
Takoder  i vi ostali koji se pravite moderatorima ovog foruma procitajte pravila  ..