SA-MP Forums Archive
Determine CreateVehicle vehicle ID - 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: Determine CreateVehicle vehicle ID (/showthread.php?tid=324234)



Determine CreateVehicle vehicle ID - Daslee - 08.03.2012

Hello. How can i determine vehcile ID which is spawned in game using some commands? My code is this:
Код:
CreateVehicle(520, RandomSpawn[rand][0], RandomSpawn[rand][1], RandomSpawn[rand][2], RandomSpawn[rand][3], 65, 65, 120);
And i need to get this spawned vehicle ID to put player in that.


Re: Determine CreateVehicle vehicle ID - DRIFT_HUNTER - 08.03.2012

pawn Код:
new vehicleid;
vehicleid = CreateVehicle(520, RandomSpawn[rand][0], RandomSpawn[rand][1], RandomSpawn[rand][2], RandomSpawn[rand][3], 65, 65, 120);



Re: Determine CreateVehicle vehicle ID - Daslee - 08.03.2012

Quote:
Originally Posted by DRIFT_HUNTER
Посмотреть сообщение
pawn Код:
new vehicleid;
vehicleid = CreateVehicle(520, RandomSpawn[rand][0], RandomSpawn[rand][1], RandomSpawn[rand][2], RandomSpawn[rand][3], 65, 65, 120);
Thanks.