[Help] Killer Health
#1

Hello , i want to know how to increase / decrease the killer health or the one who is shooting the other player.
Reply
#2

- OnPlayerGiveDamage
- SetPlayerHealth
Reply
#3

You can do it https://sampwiki.blast.hk/wiki/OnPlayerGiveDamage or https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage.

The code to reduce health if you are using it in OnPlayerGiveDamage is:
[php]
public OnPlayerGiveDamage(playerid, blah blah)
{
new Float:health;
GetPlayerHealth(playerid, health);
SetPlayerHealth(playerid, health+amount);
return 1;
}
Reply
#4

how to reduce it -20 on each shot?
Reply
#5

Quote:
Originally Posted by Arxalan
Посмотреть сообщение
how to reduce it -20 on each shot?
http://forum.sa-mp.com/showpost.php?...postcount=4257
pawn Код:
DamagePlayer(killerid, -20.0);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)