16.02.2016, 21:48
(
Последний раз редактировалось Lucario22; 28.02.2017 в 13:31.
)
editado
CMD:vendercoche(playerid, params[])
{
new vstring[1024];
if(!IsPlayerInRangeOfPoint(playerid, 5, 358.3934,186.1840,1008.3828)) 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, "{00F70C}Venta de vehнculo", vstring, "Vender", "Cancelar");
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Si vendes el vehнculo te pagarбn la mitad del precio de lo que te costу.");
return 1;
}
CreateDynamic3DTextLabel("Si deseas vender tu coche\n{FFFFFF}usa /vendercoche.", COLOR_LIGHTBLUE, 358.2679,186.2302,1008.3828,8.0);