SA-MP Forums Archive
Little Help - 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)
+--- Thread: Little Help (/showthread.php?tid=380844)



Little Help - BigBaws - 27.09.2012

Hello guys my probleme is i want to make screen flash's when we get hited from others By gun or anything i want to make a detector of when the hp will down the Screen will flash check my code & thanks for your answers

Код:
if(health --;)
    {
		FlashPlayerScreen(playerid, COL_RED, 80, 1);
   		new Float:PlayersArmour;
		GetPlayerHealth(playerid, PlayersArmour);
		SetPlayerHealth(playerid, PlayersArmour - 1.0);
    	return 1;
    }



Re: Little Help - Roel - 27.09.2012

You can use it in OnPlayerTakeDamage I guess.