SA-MP Forums Archive
[FilterScript] Screen Fade Out After Death - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Screen Fade Out After Death (/showthread.php?tid=454681)



Screen Fade Out After Death - redrussian - 29.07.2013

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



Re: Screen Fade Out After Death - Yves - 30.07.2013

Simple but nice work mate.


Re: Screen Fade Out After Death - Black Wolf - 30.07.2013

Awesome Good Job Bro Rep++


Re: Screen Fade Out After Death - x96664 - 30.07.2013

Nice one!


Re: Screen Fade Out After Death - Pottus - 30.07.2013

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



Re: Screen Fade Out After Death - redrussian - 30.07.2013

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


Re: Screen Fade Out After Death - dEcooR - 31.07.2013

Realy NICE! but what about the red color ?

ps: i wana it with the red how to ?


Re: Screen Fade Out After Death - Unirom Shaw - 31.07.2013

Good job man.....


Re: Screen Fade Out After Death - redrussian - 31.07.2013

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


Re: Screen Fade Out After Death - dEcooR - 31.07.2013

Oka dude thnx may use it