Need little help again
#4

Name all your vehicles with vehicle1, 2 ect,

pawn Код:
new Float:Cars[][1] =
{
  {vehicle1},
  {vehicle2},
  {vehicle3}
};

public OnPlayerSpawn(playerid)
{
  new rand = random(sizeof(Cars));
 
  PutPlayerInVehicle(playerid, Cars[rand][0]);
  return 1;
}
That should work,
Also use:

https://sampwiki.blast.hk/wiki/GetPlayerVehicleSeat

To see if the seats taken,
The code i gave is untested and i dont know if it will work
Reply


Messages In This Thread
Need little help again - by Ironboy500 - 02.03.2010, 11:55
Re: Need little help again - by pierhs - 02.03.2010, 11:58
Re: Need little help again - by Ironboy500 - 02.03.2010, 12:02
Re: Need little help again - by Torran - 02.03.2010, 12:02
Re: Need little help again - by Jeffry - 02.03.2010, 12:27

Forum Jump:


Users browsing this thread: 2 Guest(s)