Help please! System of a damage
#3

Try something like this --

Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    if(issuerid != INVALID_PLAYER_ID && weaponid == 24 && bodypart == 3)
    {
        new Float:phealth;
        GetPlayerHealth(playerid, phealth);
        SetPlayerHealth(playerid, phealth-50);
        SendClientMessage(issuerid, COLOR_ORANGERED, "HIT: Torso (-50)");
    }
}
Reply


Messages In This Thread
Help please! System of a damage - by Wist - 17.12.2015, 20:32
Re: Help please! System of a damage - by Wist - 20.12.2015, 13:36
Re: Help please! System of a damage - by Sebz - 20.12.2015, 14:09
Re: Help please! System of a damage - by Shoulen - 20.12.2015, 14:09
Re: Help please! System of a damage - by Wist - 20.12.2015, 15:09
Re: Help please! System of a damage - by Nero_3D - 20.12.2015, 17:41

Forum Jump:


Users browsing this thread: 1 Guest(s)