SA-MP Forums Archive
[FilterScript] CreateVehicle new system. - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] CreateVehicle new system. (/showthread.php?tid=171735)



[Include]CreateVehicle new system. - CoaPsyFactor - 27.08.2010

CreateVehicle by CoaPsy is new system, it allows you to create vehicles with id that you want, but you must follow this step:
1. You can't add vehicle with id 1 and then with id 3 it will not create that vehicle with id 3, so you must create vehicle with id 1 and id 2, but it doesn't matter do you first create vehicle with id 2 in script and then id 1.
2. You have to include this file.
Here is an example

pawn Code:
CreateVeh(5, 451, Float:x, Float:y, Float:z, Float:fa, color1, color2, respawn_delay);//this will create Turismo with id 5
CreateVeh(2, 429, Float:x, Float:y, Float:z, Float:fa, color1, color2, respawn_delay);//this will create Banshee with id 2
CreateVeh(3, 440, Float:x, Float:y, Float:z, Float:fa, color1, color2, respawn_delay);//this will create Rumpo with id 3
CreateVeh(1, 442, Float:x, Float:y, Float:z, Float:fa, color1, color2, respawn_delay);//this will create Romero with id 1
CreateVeh(4, 445, Float:x, Float:y, Float:z, Float:fa, color1, color2, respawn_delay);//this will create Admiral with id 4
and after you do this you have to add those vehicles, with this function AddVehicles1();
pawn Code:
AddVehicles1();
the most important is that you follow that sequence if you want to add 10 vehicles don't create one with id 5 and no one with id 4, it will add then only vehicles with id 1,2 and 3.
PASTEBIN
Download include file


Re: CreateVehicle new system. - CyNiC - 27.08.2010

It's great for beginners or disorganized.


Re: CreateVehicle new system. - wups - 27.08.2010

How can we find this usefull?


Re: CreateVehicle new system. - Jantjuh - 27.08.2010

nice


Re: CreateVehicle new system. - CoaPsyFactor - 27.08.2010

you can, but what if some one doesn't know SQL this is easy, cus if some one want to script some side job for rp server, he/she can create vehicles with some ids and they know then what is id of vehicle, they don't need to count how many vehicles did they created


Re: CreateVehicle new system. - nuriel8833 - 28.08.2010

Great!!!


Re: CreateVehicle new system. - Lisandro - 28.08.2010

great.i can add cars for sell ?


Re: CreateVehicle new system. - CoaPsyFactor - 28.08.2010

yes you can add them


Re: CreateVehicle new system. - XXJacksug8X - 16.07.2014

https://sampwiki.blast.hk/wiki/CreateVehicle
did u know that CreateVehicle returns the vehicle id? your include has nothing useful @ all


Re: CreateVehicle new system. - CoaPsyFactor - 18.07.2014

Quote:
Originally Posted by XXJacksug8X
View Post
https://sampwiki.blast.hk/wiki/CreateVehicle
did u know that CreateVehicle returns the vehicle id? your include has nothing useful @ all
Did you know that this creates vehicles with custom id's NOOB! try reading the code xD

Quote:
Originally Posted by faiznurfaza
View Post
pastebin link plz
Update: