10.11.2015, 20:30
PHP код:
new string[128];
format(string,sizeof(string),"sell your vehicle $%d!\n\n?", GetVehiclePrice(GetPlayerVehicleID(playerid));
ShowPlayerDialog(playerid, DIALOG_VEHICLE_SELL, DIALOG_STYLE_MSGBOX, "Selling", string, "Sell", "Cancel");
stock GetVehiclePrice(vehicleid)
{
new model = GetVehicleModel(vehicleid);
if(model == 400) return 30000;
else if(model == 401) return 20000;
else if(model == 402) return 15000;
else return 0;
}