26.04.2013, 18:45
pawn Код:
case DIALOG_VEHICLE:
{
new vehicleid = GetPVarInt(playerid, "DialogValue1");
new caption[32], info[256];
format(caption, sizeof(caption), "Vehicle ID %d", vehicleid);
strcat(info, "Engine\nLights\nHood\nTrunk", sizeof(info));
strcat(info, "\nFill Tank", sizeof(info));
if(GetPlayerVehicleAccess(playerid, vehicleid) >= 2)
{
new value = VehicleValue[vehicleid]/2;
format(info, sizeof(info), "%s\nSell Vehicle ($%d)\nPark Vehicle\nEdit License Plate", info, value);
}
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_LIST, caption, info, "Select", "Cancel");
}

