SA-MP Forums Archive
Car Bombing - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Car Bombing (/showthread.php?tid=164019)



Car Bombing - ScottCFR - 29.07.2010

I am creating a Car Bomb type thing. Basically if the car is armed it will explode when someone enters it, I am using enums. I have the bomb enum but on the car I want to use like a MAX_CARS. How would I create a custom function, as in Car[carid][Armed].

Thanks,
ScottCFR


Re: Car Bombing - Blt950 - 29.07.2010

Why just not make a function like new CarBomb[MAX_VEHICLES] = 1/0;

Then you can check if that car has a bomb or not
Be sure you apply MAX_VEHILCES into your car you set bomb on etc etc.