NAPOMENA: Ako ne razumijete neki dio teksta, recite pa cemo vam prevesti!Seifader
Fade it with any color!
â–ºScript Typeâ–ºScript Features
- 2 functions allowing you to fade in or out with ANY color
- 2 callbacks that are called when the screen is faded(one for in, other for out. Caution: make sure to read Others)
â–ºScript Functions/Callbacks
- Seifader_OnInit() // Must be called in OnGameModeInit or OnFilterScriptInit (whichever using this include)
- Seifader_OnExit() // Must be called in OnGameModeExit or OnFilterScriptExit (whichever using this include)
- Seifader_OnPlayerDisconnect(playerid, reason) // Must be called in OnPlayerDisconnect
- FadePlayerScreen(playerid, color, speed) // Fades the screen from the color to your normal screen. (V.1.0 ONLY: speed = SLOW_FADE or NORMAL_FADE or FAST_FADE)
- FadePlayerScreenToColor(playerid, color, speed) // Fades the screen from your screen to the color. (V.1.0 ONLY: speed = SLOW_FADE or NORMAL_FADE or FAST_FADE)
- (callback) OnPlayerScreenFade(playerid, color, speed) // Called when FadePlayerScreen function is done fading. (Read Others)
- (callback) OnPlayerScreenColorFade(playerid, color, speed) // Called when FadePlayerScreenToColor function is done fading. (Read Others)
â–ºScript Download
[v1.0]Seifader.inc | Pastebin -> http://pastebin.com/f746b82e7 (http://pastebin.com/f746b82e7)- [v1.5]Seifader.inc | Pastebin -> http://pastebin.com/fca62d78 (http://pastebin.com/fca62d78)
►Script Installation »Open the link and paste the script in a .inc file
»Save As it in 'pawno/includes' as Seifader.inc.
»Go to the gamemode or filterscript you want to add this in and add this under "#include <a_samp>": #include <Seifader>
»Add this in the bottom of your script(gamemode/filterscript):
[pawn]
public OnPlayerScreenFade(playerid, color, speed)
{
return 1;
}
public OnPlayerScreenColorFade(playerid, color, speed)
{
return 1;
}
[/pawn]
»Use the functions and have fun!
â–ºOther
- You MUST add these in the bottom of the script using the include. If you don't, you'll have errors. You can use these callbacks to re-fade or whatever your use of these could be:
[pawn]
public OnPlayerScreenFade(playerid, color, speed)
{
return 1;
}
public OnPlayerScreenColorFade(playerid, color, speed)
{
return 1;
}
[/pawn]
- Screenshots:
(When it's fading from red(slow fade))
(http://i38.tinypic.com/2dm8501.png)
(again... half way(slow fade))
(http://i33.tinypic.com/2q2hff7.png)
- Video: http://www.youtube.com/watch?v=rE2tZOv1Sxo (http://www.youtube.com/watch?v=rE2tZOv1Sxo)