Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:vendercoche(playerid, params[])
- {
- new vstring[1024];
- if(!IsPlayerInRangeOfPoint(playerid, 0, 1832.19,-1274.11,120.27)) return SendClientMessageEx(playerid, COLOR_GREY, "No estás en el ayuntamiento.");
- for(new i; i < MAX_PLAYERVEHICLES; i++)
- {
- if(PlayerVehicleInfo[playerid][i][pvId] > INVALID_PLAYER_VEHICLE_ID)
- format(vstring, sizeof(vstring), "%s\n%s", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400]);
- else if(PlayerVehicleInfo[playerid][i][pvImpounded] == 1)
- format(vstring, sizeof(vstring), "%s\n%s (Embargado)", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400]);
- else
- format(vstring, sizeof(vstring), "%s\nVacío", vstring);
- }
- SafeDialogEx(playerid, SELLCAR, DIALOG_STYLE_LIST, "Venta de Vehiculo", vstring, "Vender", "Cancelar");
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Si vendes el vehículo te pagarán la mitad del precio actual del vehículo.");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement