SA-MP Forums Archive
Question! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Question! (/showthread.php?tid=262619)



Question! - GeonMake - 18.06.2011

How do I like when a player has 10HP such animal to remain on the down / fall and freeze?


Re: Question! - GeonMake - 18.06.2011

BUMP! help please


Re: Question! - Wesley221 - 18.06.2011

Jezus, stop bumping topics in less then 24 hours...
Make a loop that checks the health of players, when its lower then 10 apply an animation on him, and freeze him

Should look like this:

pawn Код:
for(new 0 = 1; i<MAX_PLAYERS;i++)
{
    new Float:health;
    GetPlayerHealth(playerid, health);
    if(health <= 10)
    {
        // Bla bla bla
    }
}