If the 4th integer is true..
#7

Just check if the variable siren is 1 or 0 (return an error message if not).

Then pass the variable to CreateVehicle at the end like in the wiki.

https://sampwiki.blast.hk/wiki/CreateVehicle
example:
CreateVehicle(model, x, y, z, rotation, color1, color2, respawn_time, siren);

Edit: you provided the code as I posted, so I can see that you forgot to add respawn_time in the middle. Instead of respawn_time you can use -1 (like it says in the wiki) and it will never respawn and then pass siren, it should work.

I advise saving rotation data along with coordinates for the car so that it doesn't spawn unpredictably.
Reply


Messages In This Thread
If the 4th integer is true.. - by Drak03 - 04.04.2018, 15:05
Re: If the 4th integer is true.. - by Jstylezzz - 04.04.2018, 15:07
Re: If the 4th integer is true.. - by Drak03 - 04.04.2018, 15:12
Re: If the 4th integer is true.. - by Drak03 - 04.04.2018, 15:14
Re: If the 4th integer is true.. - by Jstylezzz - 04.04.2018, 15:15
Re: If the 4th integer is true.. - by Drak03 - 04.04.2018, 15:18
Re: If the 4th integer is true.. - by AdamsLT - 04.04.2018, 15:20
Re: If the 4th integer is true.. - by Drak03 - 04.04.2018, 15:21
Re: If the 4th integer is true.. - by AdamsLT - 04.04.2018, 15:27
Re: If the 4th integer is true.. - by Drak03 - 04.04.2018, 15:27

Forum Jump:


Users browsing this thread: 1 Guest(s)