Posts: 883
Threads: 131
Joined: Mar 2011
Reputation:
0
How can i get the vehicle id of the last vehicle the player was in?
Example: I get into an elegy ID: 20, then i exit, and do /lock, then it locks car ID:20
Posts: 1,274
Threads: 54
Joined: Jul 2012
For yourself or for a player like,
/lastvehicle [ID] [CarID]?
Posts: 883
Threads: 131
Joined: Mar 2011
Reputation:
0
Well its not a command to see the last id, its used so the player, once he leaves the car, he can use /lock and it locks that car. "that car" is the ID of the last car he was in
Posts: 1,274
Threads: 54
Joined: Jul 2012
Oh? So like a string sent to the player of his vehicle ID?
I'm honestly not understanding your question/request.
Posts: 883
Threads: 131
Joined: Mar 2011
Reputation:
0
Okay, so, a player enters vehicle ID: 20, (not the actual model id but the unique id it is given when spawned). So now he has "ownership" of vehicle ID: 20. When he exits the car, and does: /lock, it locks ONLY vehicle ID: 20. And another player tries to enter it, and it says "blah blah car is locked"
Posts: 883
Threads: 131
Joined: Mar 2011
Reputation:
0
Okay, so how would i check to see if another player (not ownership of that ID) enters it while its locked and he gets ejected?