Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case DIALOG_GARAGE: {
- if(!response) return 1;
- if(strfind(inputtext, "Spawn All Vehicles", true) != -1) {
- new respawntax = GetVehicles(playerid) * 1000;
- format(string, sizeof(string), "Nu ai $%d.", respawntax);
- if(GetPlayerCash(playerid) < respawntax) return SendClientMessage(playerid, COLOR_GREY, string);
- for(new i = 0; i < 10; i++) {
- if(PlayerInfo[playerid][pCarKey][i] != 0) {
- new carid = PlayerInfo[playerid][pCarKey][i];
- if(CarInfo[carid][Spawned] != 0 && CarInfo[carid][Confiscated] != 1 && !IsAttached(CarInfo[carid][Spawned]) && !IsVehicleOccupied(CarInfo[carid][Spawned])) {
- SetVehicleToRespawn(CarInfo[carid][Spawned]);
- SetTunning(carid);
- }
- else SpawnPlayerCar(carid);
- }
- }
- GivePlayerCash(playerid, -respawntax);
- BizzInfo[19][bBalance] += respawntax;
- mysql_format(SQL, query, sizeof(query), "UPDATE bizz SET Till = %d WHERE ID = %d", BizzInfo[19][bBalance], 30);
- mysql_tquery(SQL, query, "", "");
- SCM(playerid, COLOR_GOLD, "[Manage vehicle] Your cars have been respawned.");
- }
- new idd;
- if(PlayerInfo[playerid][pCarKey][listitem] == 0) return 1;
- else idd = PlayerInfo[playerid][pCarKey][listitem];
- sVehicle[5][playerid] = idd;
- SetPVarInt(playerid, "VehicleSlot", listitem);
- if(CarInfo[idd][Spawned] != 0) strcat(string, "Vehicle Info\nFind Vehicle\nTow Vehicle (/park)\nTow Vehicle (last known location)\nDespawn\nDebug\nSell Vehicle\nBuy Insurance\nUpgrade to VIP Vehicle - {FFFF00}1008 premium points{FFFFFF}\n{FF0000}Remove tuning");
- else if(CarInfo[idd][Spawned] == 0) strcat(string, "Vehicle Info\nFind Vehicle\nTow Vehicle (/park)\nTow Vehicle (last known location)\nSpawn vehicle\nDebug\nSell Vehicle\nBuy Insurance\nUpgrade to VIP Vehicle - {FFFF00}1008 premium points{FFFFFF}\n{FF0000}Remove tuning");
- if(CarInfo[idd][Confiscated] == 1) strcat(string, "\n{FFFFFF}Pay fine to TTC");
- ShowPlayerDialog(playerid, DIALOG_GARAGE1, DIALOG_STYLE_LIST, "Options", string, "Ok", "Back");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement