[HELP]Random Vehicle type.
#5

pawn Код:
new CarIDs[2][1]={ //change the 2 to how many different IDs you are using
{500},
{411} //always leave the last without the ,
};
//OnGameModeInit
new rand = random(sizeof(CarIDs));
AddStaticVehicle(CarIDs[rand][0], X, Y, Z, Angle, Colour1, Colour2);
you only have to use float:... if its a coordinate but here its just a number Hope it helps
Reply


Messages In This Thread
[HELP]Random Vehicle type. - by Abernethy - 09.06.2009, 10:25
Re: [HELP]Random Vehicle type. - by Gappy - 09.06.2009, 10:43
Re: [HELP]Random Vehicle type. - by Abernethy - 09.06.2009, 11:21
Re: [HELP]Random Vehicle type. - by Gappy - 09.06.2009, 11:38
Re: [HELP]Random Vehicle type. - by MPKaboose - 09.06.2009, 11:41
Re: [HELP]Random Vehicle type. - by Abernethy - 10.06.2009, 05:14
Re: [HELP]Random Vehicle type. - by Klutty - 10.06.2009, 06:43
Re: [HELP]Random Vehicle type. - by Joe Staff - 10.06.2009, 07:15

Forum Jump:


Users browsing this thread: 3 Guest(s)