Double damage - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Double damage (
/showthread.php?tid=605022)
Double damage -
ScIrUsna - 13.04.2016
Hi,
I want to make when player shoot to player it takes double damage i do like that
Код:
OnPlayerTakeDamage( .. )
{
new Float:HHH;
GetPlayerHealth( playerid, HHH );
SetPlayerHealth( playerid, HHH-amount );
}
I set player health with getplayerhealth and -amount how much damage was made.
Re: Double damage -
Godey - 13.04.2016
So, what's your conclusion?
You want it doubled?
Код:
SetPlayerHealth( playerid, (HHH-amount)*2 );