Posts: 498
Threads: 233
Joined: Aug 2013
Reputation:
0
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?
Posts: 498
Threads: 233
Joined: Aug 2013
Reputation:
0
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);
}
Posts: 377
Threads: 20
Joined: Mar 2012
Reputation:
0
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