OnVehicleDeath
#1

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

Clear the variables and reset the files (if you have any) at OnVehicleDeath?

iTrunk[vehicleid][tWeapon1] = 0 .. and so on.
Reply
#3

Working, ty REP+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)