AVS park problem
#6

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");
        }
This code is copied from the AVS script. Using /v this dialog will be shown, if you own the vehicle.
Reply


Messages In This Thread
AVS park problem - by CrayZee09 - 26.04.2013, 16:35
Re: AVS park problem - by Jstylezzz - 26.04.2013, 16:38
Re: AVS park problem - by CrayZee09 - 26.04.2013, 16:40
Re: AVS park problem - by Jstylezzz - 26.04.2013, 16:44
Re: AVS park problem - by CrayZee09 - 26.04.2013, 17:53
Re: AVS park problem - by Jstylezzz - 26.04.2013, 18:45
Re: AVS park problem - by CrayZee09 - 26.04.2013, 19:31

Forum Jump:


Users browsing this thread: 1 Guest(s)