get passenger name?
#1

Hey guys,
i am actually making my own vehicle system and i don't know how to get the driver name.
Because my system works like that :
"/sell id price"
and after the buyer write "/accept car" into the passenger place.
And i need the driver name to givemoney to him.

Thanks for your help!
Reply
#2

Basically, do a loop through all of the players with the drivers vehicle ID and check if there is any other passenger in the same vehicle ID as the driver, then check that the player is in the passenger seat with:

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

and after that, do your code.
Reply
#3

There isn't a easier way?
I just want to take an amount of money to the driver
Can i get his id?
Код:
new pvente = VehicleInfo[vehicleID][price];
new vdname;
vdname = VehicleInfo[vehicleID][owner];
GivePlayerMoney(vdname, pvente);
This doesn't work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)