GetPassengerID or something like that? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GetPassengerID or something like that? (
/showthread.php?tid=295661)
GetPassengerID or something like that? -
pliptm - 07.11.2011
Hi. I was wondering that is there any include or something like that for getting vehicle passenger id ?
Or is there alternative way to change passenger virtualworld and interior(i'm messed with this about 2h)?
Re: GetPassengerID or something like that? -
Scenario - 07.11.2011
I think ****** explained two ways to do this on the other thread you posted.
Re: GetPassengerID or something like that? -
Kostas' - 07.11.2011
As RealCop228 said, ****** already told you
Quote:
Originally Posted by ******
There are two ways: record all passengers in OnPlayerEnterVehicle (though make sure they actually end up in the vehicle), or just loop through all players and check their current vehicle ID (0 means no vehicle so you don't need to check if they're in one first).
|
Re: GetPassengerID or something like that? -
pliptm - 07.11.2011
yes, ****** told me, but i don't have a glue whit what paramtere i have to check players current vehicle id.
Can anybody from here tell me that?
Re: GetPassengerID or something like that? -
pliptm - 07.11.2011
okey, thanks, i thought that there's different one.. but still, big thanks..
Re: GetPassengerID or something like that? -
pliptm - 07.11.2011
Tried it, but still i don't understand this.

Can anybody please do it for me?