Posts: 1,645
Threads: 100
Joined: Aug 2009
Reputation:
0
Okay, so I've made a Racing GM.
Then here's my question :
I have 30 Cars for my Racing GM, all in one area (Row and column)
Then for example, 30 player's spawn at the same time, using
PutPlayerInVehicle(playerid, CreateVehicle(601, x, y, z, 0, -1, -1, -1), 0)
will all 30 cars be filled or will it just cause a crash?
Posts: 2,938
Threads: 162
Joined: May 2010
Posts: 2,938
Threads: 162
Joined: May 2010
https://sampwiki.blast.hk/wiki/GetPlayerVehicleSeat
check if someone is already in one of the vehicle seats if not putplayer in vehicle
or they crrash when they exit
Posts: 601
Threads: 74
Joined: Sep 2009
Reputation:
0
could make a function or sumthing
putplayerinveh(playerid)
{
new Vehid = 0;
PutPlayerInVehicle(playerid,Vehid,0)
Vehid++
}
or something like taht wich automaticallly increases the vehid
Posts: 1,645
Threads: 100
Joined: Aug 2009
Reputation:
0
Okay, wait lemme explain again :
So I have 3 cars setted-up.
Then when the 3 players spawn
at the same time, they each
will be putted at those 3 cars,
like ID 0 goes to car 1, ID1 goes
to car 2, etc... Which ever is the
car that has no driver in it.
Posts: 3,304
Threads: 58
Joined: Sep 2008
Reputation:
0
All vehicles will be filled, but it may cause some shitty things to be able to happen, like empty cars on the track.
Posts: 2,938
Threads: 162
Joined: May 2010
or if someone is in the driver seat and u put him in the drive seat when he exits he crashs