- 0
Problema rentcar bizz
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
drkinder
Salut!
Am o problema cu bizz-ul rentcar cand ma urc intr.o masina de la rentcar imi apare textul ala cu type /rentcar sau /exit...daca dau rentcar nu se intampla nimic.
Asta e comanda /rentcar:
if(strcmp(cmd, "/rentcar", true) == 0) { if(IsPlayerConnected(playerid)) { if(GetPlayerVehicleID(playerid) >= 72 && GetPlayerVehicleID(playerid) <= 77) { new hirefee = HireCost(GetPlayerVehicleID(playerid)); if(GetPlayerVehicleID(playerid) >= 72 && GetPlayerVehicleID(playerid) <= 74) { if(SBizzInfo[0][sbProducts] == 0) { GameTextForPlayer(playerid, "~r~Out Of Stock", 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, " You dont have that much cash !"); return 1; } GivePlayerMoney(playerid,-SBizzInfo[0][sbEntranceCost]); SBizzInfo[0][sbTill] += SBizzInfo[0][sbEntranceCost]; ExtortionSBiz(0, SBizzInfo[0][sbEntranceCost]); SBizzInfo[0][sbProducts]--; } if(GetPlayerVehicleID(playerid) >= 75 && GetPlayerVehicleID(playerid) <= 77) { if(SBizzInfo[1][sbProducts] == 0) { GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1); return 1; } if(PlayerInfo[playerid][pPbiskey] == 1) { GameTextForPlayer(playerid, "~w~No charge for the boss", 5000, 3); TogglePlayerControllable(playerid, 1); return 1; } if (GetPlayerMoney(playerid) < SBizzInfo[1][sbEntranceCost]) { SendClientMessage(playerid, COLOR_GRAD2, " You dont have that much cash !"); return 1; } GivePlayerMoney(playerid,-SBizzInfo[1][sbEntranceCost]); SBizzInfo[1][sbTill] += SBizzInfo[1][sbEntranceCost]; ExtortionSBiz(1, SBizzInfo[1][sbEntranceCost]); SBizzInfo[1][sbProducts]--; } if(HireCar[playerid] != 299) { gCarLock[HireCar[playerid]] = 0; UnLockCar(HireCar[playerid]); } HireCar[playerid] = GetPlayerVehicleID(playerid); OnPropUpdate(); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); format(string, sizeof(string), "~w~We hope you enjoy ~n~the use of this car~n~To lock or unlock your car~n~type ~g~/lock~n~~w~please drive safely",hirefee); TogglePlayerControllable(playerid, 1); GameTextForPlayer(playerid, string, 5000, 3); } } return 1; }Sper ca ma puteti ajuta.Multumesc anticipat!:D
1 answer to this question
Recommended Posts