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



bleeding system - iBots - 18.11.2013

i want a rp bleeding system which is if your health is 35 you will start bleeding,if ur bleeding each 5 seconds it will send him a message:You Are Bleeding!,and each 5 seconds it gives his -8 hp,how to do it?


Respuesta: bleeding system - Jejox - 18.11.2013

Mmm ask much D:


Re: bleeding system - iBots - 19.11.2013

i have made like this but it shows an error about if(health > 35)...
//Bleeding...
GetPlayerHealth(playerid, health);
if(health > 35)
{
SetPlayerHealth(playerid, health-10);
}


Re: bleeding system - ***Niko*** - 19.11.2013

You should make it under "OnPlayerTakeDamage" with a timer what will check players health example ever 2 seconds and if health is lower thank 35 to send him message and take his health (2-4hp) every cople of seconds