[HELP] Extra Damage for the head!
#6

Quote:
Originally Posted by Dragonic
Посмотреть сообщение
Код:
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);
    }
This code in making no since for me, you're checking if he shot the other with a rife in the head then

Set the armour to -85(why?, it doesn't decrease it by 85, it SETS it to -85"if I'm not wrong")
then get his armour(which you just set "-85")
then i don't know what that lines means "if(playerid,armour == 0)"

Try to explain what're you trying to do and I'll help 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: 2 Guest(s)