SA-MP Forums Archive
Damage system - 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: Damage system (/showthread.php?tid=617129)



Damage system - MerryDeer - 16.09.2016

Hi,

How to create that when i shoot to player i could see how much tamage take in label, that label will go up and display like in Counter Strike.


Re: Damage system - verlaj - 16.09.2016

like this ?
Code:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
                new string[20];
		format(string,sizeof(string),"-%.0f hp",amount);
		SetPlayerChatBubble(playerid,string,COLOR_RED,150.0,2500);
		PlayerPlaySound(issuerid,  17802, 0.0, 0.0, 0.0);
     return 1;
}