SA-MP Forums Archive
[HELP] Faint system - 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: [HELP] Faint system (/showthread.php?tid=122544)



[HELP] Faint system - Zimon95 - 22.01.2010

Hello, I can't make a faint system, I put this script in onplayerupdate but it doesn't work. Can you help me?
Код:
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);
}
Help me fix it pls!