Death timer.
#1

Hello guys i am re-starting scripting and i always wanted to do that when a person dies he get the /fall anim and he have 450 seconds till a medic helps.

If you got an idea how to do this i would be looking foward to learn =] .

Thanks a lot karl1195.
Reply
#2

put this in your OnPlayerUpdate
pawn Код:
new Float: Health;
if(GetPlayerHealth(playerid,Health) < 10)
ApplyAnimation(playerid,"CRACK","crckdeth1",4.1,1,1,1,1,1,1);
SetTimer( "Nohelp", 5000, false);
change 5000 in timer with the time you wan't

pawn Код:
public Nohelp()
{
    SetPlayerHealth(playerid,0);
}

p.s. don't forget "forward Nohelp();"
Reply
#3

The public Nohelp is giving error to me because the playerid.


I think it will way better, here, the fixed public:

pawn Код:
public Nohelp()
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        SetPlayerHealth(i, 0);
    }
}

i hope i have helped
Reply
#4

Okay thanks a lot i will try this soon thanks buddy if you don't mind can you add me on msn khibs@hotmail.com

Thanks a lot.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)