07.03.2014, 07:18
When a person have 30 hp I want it to do / stopani (the system stop the anim)
the code:
the code:
PHP Code:
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#define col_grey 0xADADADFF
#define COLOR_RED 0xAA3333AA
public OnPlayerUpdate(playerid)
{
new Float:health;
GetPlayerHealth(playerid, health);
if(health <= 20)
{
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
}
return 1;
}