25% Chance to Headshot
#5

Why are you returning 0, just simplify it:
pawn Код:
if(bodypart == BODY_PART_HEAD && weaponid == 34)
{
    new chance = random(4);
    if(chance == 3) SetPlayerHealth(playerid, 0);
}
Reply


Messages In This Thread
25% Chance to Headshot - by dionisak0s - 31.05.2015, 12:30
Re: 25% Chance to Headshot - by SoFahim - 31.05.2015, 12:58
Re: 25% Chance to Headshot - by Sellize - 31.05.2015, 13:05
Re: 25% Chance to Headshot - by dionisak0s - 31.05.2015, 23:00
Re: 25% Chance to Headshot - by SickAttack - 31.05.2015, 23:47
Re: 25% Chance to Headshot - by dionisak0s - 04.06.2015, 09:57

Forum Jump:


Users browsing this thread: 1 Guest(s)