25.09.2015, 17:55
You can make a loop to check how many cars you have on server then random that value, something like this:
And about Moneybag answer my question,When is the pickup "MoneyBagPickup" created?
Код:
new cars;
for(new i=0;i<MAX_VEHICLES;i++)
{
if(!IsValidVehicle(i)) //Check if the vehicle is not created.
{
cars = i-1; //It stores the last created vehicle ID;
break;
}
}
new SpawnVeh = random(cars); //It selects a random car.

