20.12.2015, 14:09
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)"); } }