Blink Player screen on PlayerTakeDamage - 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: Blink Player screen on PlayerTakeDamage (
/showthread.php?tid=343966)
Blink Player screen on PlayerTakeDamage -
[LvZ]Free - 19.05.2012
It is possible to make the screen blink when the player take damage..
Maybe blur i can't even discribe ... If you play Call Of Duty, and when you have less health your screen blink in red... I want something similar *sorry for bad english
Re: Blink Player screen on PlayerTakeDamage -
MP2 - 19.05.2012
You can't blur a player's screen, but you can flash a red textdraw on and off using a timer. Here's the textdraw:
pawn Код:
redness = TextDrawCreate(320.000000, -10.000000, "_");
TextDrawAlignment(redness, 2);
TextDrawBackgroundColor(redness, 255);
TextDrawFont(redness, 1);
TextDrawLetterSize(redness, 0.500000, 52.000000);
TextDrawColor(redness, -1);
TextDrawSetOutline(redness, 0);
TextDrawSetProportional(redness, 1);
TextDrawSetShadow(redness, 1);
TextDrawUseBox(redness, 1);
TextDrawBoxColor(redness, -16777182);
TextDrawTextSize(redness, -1.000000, 667.000000);
Re: Blink Player screen on PlayerTakeDamage -
[LvZ]Free - 19.05.2012
aaa nothing happen. Anything else ?
Re: Blink Player screen on PlayerTakeDamage -
Joe Staff - 19.05.2012
Search for a fader include, there's an example in it.
Re: Blink Player screen on PlayerTakeDamage -
liquor - 19.05.2012
Ofcourse you'll have to use TextDrawShowForPlayer and TextDrawHideForPlayer to make it show and hide, and put those in a timer. Please do it correctly and above textdraw will work.
Re: Blink Player screen on PlayerTakeDamage -
Jeffry - 19.05.2012
http://forum.sa-mp.com/showpost.php?...90&postcount=3