[SOLVED]Vehicles in array mb?
#4

Quote:
Originally Posted by Weirdosport
for(new a=0; a<6; a++)
{
CreateVehicle(Lvl1Cars[a][0],Lvl1Cars[a][1],Lvl1Cars[a][2],Lvl1Cars[a][3], 0.0, -1, -1, 10);
}

-1 and -1 are random car colours, and 10 is the respawn time. Seeing as you don't have rotations in the array, I left it as 0.0
-1 and -1 work, but IMO it would be better to use random(127) as that will randomly pick a color. -1 is a client side color value and it will (due to random nature it could theoretically be the same sometimes) be different on each client.
Reply


Messages In This Thread
[SOLVED]Vehicles in array mb? - by kLx - 11.05.2009, 16:26
Re: Vehicles in array mb? - by Weirdosport - 11.05.2009, 17:03
Re: Vehicles in array mb? - by kLx - 11.05.2009, 17:09
Re: Vehicles in array mb? - by Ipuvaepe - 11.05.2009, 19:12
Re: Vehicles in array mb? - by kLx - 12.05.2009, 10:10
Re: Vehicles in array mb? - by yom - 12.05.2009, 10:34
Re: Vehicles in array mb? - by kLx - 12.05.2009, 10:42
Re: Vehicles in array mb? - by yom - 12.05.2009, 10:49
Re: Vehicles in array mb? - by kLx - 12.05.2009, 11:12

Forum Jump:


Users browsing this thread: 1 Guest(s)