03.01.2015, 17:22
Yo , I want to do a random car spawns like that :
But the modelid and the colors of the cars are not float , How can I do it ? Because I've more than 80 vehicles and I don't want to do this : for 80 cars !
So thanks for the future help
Код:
new Float:RandomCarSpawn[][] =
{
{427,2239.6694,2441.9373,3.4053,88.4534,0,1},//I know it's the same car , it's for the exemple
{427,2239.6694,2441.9373,3.4053,88.4534,0,1},
{427,2239.6694,2441.9373,3.4053,88.4534,0,1}
};
Код:
if (result == 0)
{
AddStaticVehicle(470,1678.5349,1790.9318,10.8172,268.2018,43,0); //
}
if (result == 1)
{
AddStaticVehicle(485,1669.7319,1564.0251,10.4399,181.8410,1,75); //
}
if (result == 2)
{
AddStaticVehicle(583,1274.0514,1503.6760,10.3606,179.7288,1,1); //
}


