22.01.2010, 13:51
Hello, I can't make a faint system, I put this script in onplayerupdate but it doesn't work. Can you help me?
Help me fix it pls!
Код:
if(GetPlayerHealth(playerid) < 25)
{
new string[64];
GetPlayerName(playerid, name, sizeof(name));
ApplyAnimation(playerid,"SWAT","gnstwall_injurd",4.1,1,1,1,1,0);
format(string, sizeof(string), "* %s feels bad and faints.", name);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}

