[HELP] Extra Damage for the head!
#1

So, based on a post that I saw on forums plus my noob knowledge about pawn I ended up with that:

Код:
if(issuerid != INVALID_PLAYER_ID && weaponid == 33 && bodypart == 9)
    {
    new Float:armour;
    SetPlayerArmour(playerid,-85);
    GetPlayerArmour(playerid, armour);
    if(playerid,armour == 0) SetPlayerHealth(playerid,-85);
    }
The code should work like that:
If the player hits the head with a rifle, its going to cause 85 damage, but instead, if someone hits the other player's head, it just resplenish the armour, and if the bullet hit the body it just go trough the armour and causes 85 damage to the health.

If someone can find out what's wrong, I would thank you !
Reply


Messages In This Thread
[HELP] Extra Damage for the head! - by Dragonic - 24.07.2015, 10:29
Re: [HELP] Extra Damage for the head! - by MBilal - 24.07.2015, 10:44
Re: [HELP] Extra Damage for the head! - by Dragonic - 24.07.2015, 10:50
Re: [HELP] Extra Damage for the head! - by MBilal - 24.07.2015, 11:07
Re: [HELP] Extra Damage for the head! - by Dragonic - 24.07.2015, 14:37
Re: [HELP] Extra Damage for the head! - by xVIP3Rx - 24.07.2015, 14:46
Re: [HELP] Extra Damage for the head! - by liquor - 24.07.2015, 14:58
Re: [HELP] Extra Damage for the head! - by Dragonic - 24.07.2015, 14:59
Re: [HELP] Extra Damage for the head! - by PMH - 24.07.2015, 15:00
Re: [HELP] Extra Damage for the head! - by liquor - 24.07.2015, 15:01

Forum Jump:


Users browsing this thread: 3 Guest(s)