Hp script
#2

Use a timer or use onplayerupdate ( i think it will work)
pawn Код:
new Float:phealth;
GetPlayerHealth(playerid,phealth);
if(phealth < 51)
{
    //apply the fall animation
    TogglePlayerControllable(playerid,0);
    SendClientMessage(playerid,-1,"You have falled to the ground because you are injured");
    return 1;
}
try that
Reply


Messages In This Thread
Hp script - by N0FeaR - 09.01.2012, 00:22
Re: Hp script - by Tanush123 - 09.01.2012, 00:33
Re: Hp script - by N0FeaR - 09.01.2012, 00:58
Re: Hp script - by Tanush123 - 09.01.2012, 01:01
Re: Hp script - by N0FeaR - 09.01.2012, 01:26
Re: Hp script - by Tanush123 - 09.01.2012, 02:16
Re: Hp script - by Rob_Maate - 09.01.2012, 06:16
Re: Hp script - by N0FeaR - 09.01.2012, 06:39
Re: Hp script - by N0FeaR - 09.01.2012, 07:14
Re: Hp script - by N0FeaR - 09.01.2012, 15:34

Forum Jump:


Users browsing this thread: 1 Guest(s)