Get Playername from Vehicle ID
#1

Hello, is there any way of getting a players name from the vehicle ID. EX: If I type in /vowner [carid]. It will show me who owns the car from the vehicle ID.
Reply
#2

Yes, it is possible. Link the created cars to the playerid. When you type the command you can loop for example through all players to find the owner.
Reply
#3

No easy function or anything to use?
Reply
#4

I thought you will know how to do it after my hint. Well, i don't know your codes, so i can't do more than giving you that hint.
Reply
#5

I understand what you mean, but for the loop. Would you just need something like +1 to player id until playeridcar = carid or what?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)