weapon config help
#1

When vehicle explodes near players take no damage from explosion or when they catch on fire with this code:
Code:
public OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)
{
    if(Killed[playerid] != 0) return 1;
	
    hsv[issuerid] = 0;

    if((weapon == WEAPON_CARPARK || weapon == WEAPON_HELIBLADES || weapon == WEAPON_VEHICLE_MINIGUN) && GangTeam[playerid] == 0)
    {
        hsv[issuerid] = 1;
	return 0;
    }
    return 1;
}
However when I delete all the code inside and leave just this

Code:
public OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)
{
    return 1;
}
Damage is being taken normally, I have absolutely not a clue what is preventing the damage.
I tried to debug it, weapon ids that're supposed to damage player on explosion or when he's on fire are ID:54 and ID:37
Reply


Messages In This Thread
weapon config help - by cipi89 - 07.05.2020, 01:38
Re: weapon config help - by Adamoneoone - 07.05.2020, 09:41
Re: weapon config help - by cipi89 - 08.05.2020, 10:19
Re: weapon config help - by jasperschellekens - 08.05.2020, 11:18
Re: weapon config help - by cipi89 - 08.05.2020, 20:11

Forum Jump:


Users browsing this thread: 1 Guest(s)