Blink Player screen on PlayerTakeDamage
#1

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
Reply
#2

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);
Reply
#3

aaa nothing happen. Anything else ?
Reply
#4

Search for a fader include, there's an example in it.
Reply
#5

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.
Reply
#6

http://forum.sa-mp.com/showpost.php?...90&postcount=3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)