Solved.
#4

well

you dont need the second part

Код:
new cars[87] = {
400,401,402 ........
}
new carowned[MAX_PLAYERS];
ok thats that

Код:
OnPlayerSpawn(playerid){
new i;
i = random(sizeof(cars));
if(carowned[playerid] > 0){
SetVehiclePos(carowned[playerid], x, y, z);
PutPlayerInVehicle(playerid, carowned[playerid], 0);
}
else{
carowned[playerid] = CreateVehicle(cars[i], x, y, z);
SetVehiclePos(carowned[playerid], x, y, z);
PutPlayerInVehicle(playerid, carowned[playerid], 0);
}
its not complete but it should help
Reply


Messages In This Thread
Solved. - by Rzzr - 17.02.2010, 17:27
Re: Create random car - by Roperr - 17.02.2010, 17:30
Re: Create random car - by Rzzr - 17.02.2010, 17:33
Re: Create random car - by adsy - 17.02.2010, 17:35
Re: Create random car - by Rzzr - 17.02.2010, 17:42
Re: Create random car - by adsy - 17.02.2010, 18:39
Re: Create random car - by Rzzr - 17.02.2010, 19:12
Re: Create random car - by smeti - 17.02.2010, 19:29

Forum Jump:


Users browsing this thread: 1 Guest(s)