08.05.2018, 12:41
Код:
if(dialogid == DIALOG_RENTCAR) { if(response) { if(listitem == 0) { if(inRent[playerid] == 0) { if(MasinaUnu != 0) { MasinaUnu--; inRent[playerid] = 1; IDmasinaInchiriata[playerid] = 526; masinaInchiriata[playerid] = CreateVehicle(526, 2148.4204, -1153.0442, 23.6379, -89.1600, -1, -1, 100); PutPlayerInVehicle(playerid, masinaInchiriata[playerid], 0); SendClientMessage(playerid, COLOR_WHITE, "Ai platit $30.000 pentru a inchiria acest vehicul."); SendClientMessage(playerid, COLOR_WHITE, "Ai grija ca cineva sa nu iti fure vehiculul, tu ii vei plati calatoria."); SendClientMessage(playerid, COLOR_WHITE, "Poti renunta oricand la masina inchiriata folosind [/unrentveh]."); GivePlayerCash(playerid, -30000); } else if(MasinaUnu == 0) { SendClientMessage(playerid, COLOR_WHITE, "Vehiculul selectat nu se mai afla in stock-ul afacerii!"); } } } } }