[FilterScript] Screen Fade Out After Death
#1

Screen Fade Out After Death
This is very simple filterscript.
After death your screen will fade out to black.
Video: [ame="http://www.youtube.com/watch?v=_aO-cVsqmcI"]http://www.youtube.com/watch?v=_aO-cVsqmcI[/ame]
Source: http://pastebin.com/nKt2EK4m
Reply
#2

Simple but nice work mate.
Reply
#3

Awesome Good Job Bro Rep++
Reply
#4

Nice one!
Reply
#5

Looks fairly decent but there is something that really need to be addressed here that is the potential for a flood of timers from fake killing you should make a variable bool:IsPlayerDead[MAX_PLAYERS]; then just put this in for the checking.

OnPlayerDeath()
pawn Code:
if(IsPlayerDead[playerid]) return 1;
IsPlayerDead[playerid] = true;
OnPlayerSpawn()
pawn Code:
IsPlayerDead[playerid] = false;
One more thing... RGBToHex(R, G, B, A) is much to simplistic of a function to be it's own function try it like this it will save a function call which is always a good thing.

pawn Code:
#define RGBToHex(%0,%1,%2,%3) %0 << 24 | %1 << 16 | %2 << 8 | %3
Reply
#6

[uL]Pottus, thank you. I've changed the code.
Reply
#7

Realy NICE! but what about the red color ?

ps: i wana it with the red how to ?
Reply
#8

Good job man.....
Reply
#9

Quote:
Originally Posted by dEcooR
View Post
Realy NICE! but what about the red color ?

ps: i wana it with the red how to ?
Replace RGBToHex(0,0,0,A)); to RGBToHex(255,0,0,A)); in both publics FadeOut and FadeIn
Reply
#10

Oka dude thnx may use it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)