[Question] How make vehicle browser
#2

You could try something like this;


at the top

pawn Код:
new _vehicle;
at the command to browse thrue the vehicles

pawn Код:
_vehicle = CreateVehicle(400, ..);
pawn Код:
new vehicle = 400;

if(vehicle < 400) {
    vehicle = 611;
} else if(vehicle > 611) {
    vehicle = 400;
}

if(newkeys & KEY_UP) {
    vehicle += 1;
    DestroyVehicle(_vehicle);
    _vehicle = CreateVehicle(vehicle, ...);
} else if(newkeys & KEY_DOWN) {
    vehicle -= 1;
    DestroyVehicle(_vehicle);
    _vehicle = CreateVehicle(vehicle, ...);
}
Reply


Messages In This Thread
[Question] How make vehicle browser - by juraska - 06.11.2011, 14:28
Re: [Question] How make vehicle browser - by Pinguinn - 06.11.2011, 14:43
Re: [Question] How make vehicle browser - by juraska - 06.11.2011, 15:21

Forum Jump:


Users browsing this thread: 1 Guest(s)