Spawning cars with names instead of IDs - 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: Spawning cars with names instead of IDs (
/showthread.php?tid=663392)
Spawning cars with names instead of IDs -
Visual917 - 30.01.2019
#define GetVehicleName(%0) VehicleName[GetVehicleModel(%0)-400]
I'm using Diverse Roleplay gamemode by TonyP and I have this in the gamemode.
I wanted to spawn banshee but i needed to put a car ID between 400 and 600. Can you help to make cars with name, and not IDs?
Re: Spawning cars with names instead of IDs -
Pottus - 30.01.2019
Use strfind.
Re: Spawning cars with names instead of IDs -
m4karow - 30.01.2019
Quote:
Originally Posted by ******
Use sscanf k<vehicle>
|
what is ‘k’? custom?