OnPlayerGiveDamage - Changing "amount" ?
#5

Use this simple code:

Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    new Float:HP;
    GetPlayerHealth(playerid, HP);
    if(weaponid == 31) SetPlayerHealth(playerid, HP-30);
    return 1;
}
More about simple damage system look here - https://sampforum.blast.hk/showthread.php?tid=330005
I use this and it's works.
Reply


Messages In This Thread
OnPlayerGiveDamage - Changing "amount" ? - by 'Pawno. - 26.10.2012, 10:58
Re: OnPlayerGiveDamage - Changing "amount" ? - by _Khaled_ - 26.10.2012, 10:59
Re: OnPlayerGiveDamage - Changing "amount" ? - by 'Pawno. - 26.10.2012, 11:03
Re: OnPlayerGiveDamage - Changing "amount" ? - by Jarnu - 26.10.2012, 11:08
Re: OnPlayerGiveDamage - Changing "amount" ? - by B-Matt - 26.10.2012, 11:08
Re: OnPlayerGiveDamage - Changing "amount" ? - by 'Pawno. - 26.10.2012, 13:42
Re: OnPlayerGiveDamage - Changing "amount" ? - by SuperViper - 26.10.2012, 14:29

Forum Jump:


Users browsing this thread: 2 Guest(s)