[FilterScript] CreateVehicle new system.
#1

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
Reply
#2

It's great for beginners or disorganized.
Reply
#3

How can we find this usefull?
Reply
#4

nice
Reply
#5

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
Reply
#6

Great!!!
Reply
#7

great.i can add cars for sell ?
Reply
#8

yes you can add them
Reply
#9

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

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:
  • PasteBin
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)