[HELP]Random Vehicle type.
#2

pawn Код:
//top of script
new Float:gCarIDS[2][1] = {//change the 2 to how many different IDs you are using
{500},//car ids
{411}
};

//OnGameModeInIt
rand = random(sizeof(gCarIDS));
AddStaticVehicle(gCarIDS[rand][0], X, Y, Z, Angle, Colour1, Colour2);
Try that, it should work i think

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: 1 Guest(s)