OnPlayerTakeDamage doesn't work?
#2

I think the problem is with the variable armor....how are you getting this? If it wasn't already fetched before the code block you posted, it will always be equal to 0.

Код:
        if(weaponid == 24) //deagle
        {
	        new Float:a;
	        GetPlayerArmour(playerid, a);

                if(a > 0.0)
                {
                    pDamage[playerid] += 15;
                }
                else
                {
                    pDamage[playerid] += 30;
                }
         }
Reply


Messages In This Thread
OnPlayerTakeDamage doesn't work? - by Mado - 08.02.2013, 17:02
Re: OnPlayerTakeDamage doesn't work? - by Alternative112 - 08.02.2013, 17:54
Re: OnPlayerTakeDamage doesn't work? - by Mado - 08.02.2013, 21:30
Re: OnPlayerTakeDamage doesn't work? - by Mado - 10.02.2013, 15:11
Re: OnPlayerTakeDamage doesn't work? - by Mado - 11.02.2013, 19:07
Re: OnPlayerTakeDamage doesn't work? - by MP2 - 11.02.2013, 19:09
Re: OnPlayerTakeDamage doesn't work? - by Mado - 11.02.2013, 19:38
Re: OnPlayerTakeDamage doesn't work? - by DaRk_RaiN - 11.02.2013, 20:00
Re: OnPlayerTakeDamage doesn't work? - by Mado - 12.02.2013, 06:42
Re: OnPlayerTakeDamage doesn't work? - by Mado - 13.02.2013, 05:21

Forum Jump:


Users browsing this thread: 3 Guest(s)