Quote:
Originally Posted by cipi89
Code:
if((weapon == WEAPON_CARPARK || weapon == WEAPON_HELIBLADES || weapon == WEAPON_VEHICLE_MINIGUN) && GangTeam[playerid] == 0)
I'm asking about FLAMETHROWER and EXPLOSION which aren't WEAPON_CARPARK, WEAPON_HELIBLADES, WEAPON_VEHICLE_MINIGUN.
Instead they're 37 and 51 if im not mistaken so why would code above prevent damage from weapon 37 or 51?
Thats what I'm asking
|
Returning 0 will result in not receiving any damage. Since you only have return 0 under specific conditions it will only prevent damage there. Are you sure you didn't assign ID 51(explosion) as on of these? WEAPON_CARPARK, WEAPON_HELIBLADES, WEAPON_VEHICLE_MINIGUN