SA-MP Forums Archive
GetPlayerVehicleID or GetVehicleModel? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: GetPlayerVehicleID or GetVehicleModel? (/showthread.php?tid=83596)



GetPlayerVehicleID or GetVehicleModel? - Abernethy - 26.06.2009

I want to check if the player is in vehicle id 448. The Pizza Boy, which code do I use, this is fucking annoying me a bit. Eg.
pawn Код:
// vehicleid       HERE doesn't work.
if (GetPlayerVehicleID(playerid) == 448)
// But it does here? Which was under OnPlayerEnterVehicle
if (GetPlayerVehicleID(vehicleid) == 448)



Re: GetPlayerVehicleID or GetVehicleModel? - illay - 26.06.2009

new vid=GetVehicleModel(GetPlayerVehicleID(playerid));
if(vid == 44 ...


Re: GetPlayerVehicleID or GetVehicleModel? - Abernethy - 26.06.2009

Alright thanks mate.