OnVehicleDeath - 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: OnVehicleDeath (
/showthread.php?tid=501351)
OnVehicleDeath -
Lajko1 - 17.03.2014
Hey, I'm wondering how can I make at my trunk system when vehicle is destroyed it will clear it's trunk ? I have 5 slots and I want to make those slots if they are used (weapon stored inside) it will make it empty? This is what I'm using for trunk if it will help you ^^
pawn Код:
enum Trunk
{
tWeapon1,
tWeapon2,
tWeapon3,
tWeapon4,
tWeapon5,
tAmmo1,
tAmmo2,
tAmmo3,
tAmmo4,
tAmmo5
};
new iTrunk[MAX_VEHICLES][Trunk];
Re: OnVehicleDeath -
CuervO - 17.03.2014
Clear the variables and reset the files (if you have any) at OnVehicleDeath?
iTrunk[vehicleid][tWeapon1] = 0 .. and so on.
Re: OnVehicleDeath -
Lajko1 - 17.03.2014
Working, ty REP+