PDA

View Full Version : Blink Player screen on PlayerTakeDamage


[LvZ]Free
19/05/2012, 02:50 PM
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

MP2
19/05/2012, 02:53 PM
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:


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);

[LvZ]Free
19/05/2012, 04:39 PM
aaa nothing happen. Anything else ?

Joe Staff
19/05/2012, 04:50 PM
Search for a fader include, there's an example in it.

liquor
19/05/2012, 04:52 PM
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.

Jeffry
19/05/2012, 04:53 PM
http://forum.sa-mp.com/showpost.php?p=1231990&postcount=3