06.05.2013, 22:46
Well , Not sure how to do it - But how to make the screen start fading into black for 2/3 seconds then it fade again to be visible ?
Thanks in advance.
Thanks in advance.
#include <a_samp>#include <j_fader>new pFadePlace[MAX_PLAYERS];public OnFilterScriptInit(){ FadeInit(); return 1;}public OnFilterScriptExit(){ FadeExit(); return 1;}public OnPlayerConnect(playerid){ FadePlayerConnect(playerid); return 1;}public OnPlayerDisconnect(playerid,reason){ FadePlayerDisconnect(playerid); return 1;}public OnPlayerCommandText(playerid,cmdtext[]){ if(!strcmp(cmdtext[1],"testfade",true)) { pFadePlace[playerid]=1; FadeColorForPlayer(playerid,255,0,0,0,255,0,0,255,100,10);//starting at nothing, fading to red return 1; } return 0;}public OnFadeComplete(playerid,beforehold){ switch(pFadePlace[playerid]) { case 1: { FadeColorForPlayer(playerid,255,0,0,255,0,0,255,255,100,10);//notice how RR,GG,BB,AA 1 is now what 2 was at the start pFadePlace[playerid]=2;//fading from red to blue } case 2: { FadeColorForPlayer(playerid,0,0,255,255,0,255,0,255,100,10);//fading from blue to green pFadePlace[playerid]=3; } case 3: { FadeColorForPlayer(playerid,0,255,0,255,0,255,0,0,100,10);//Fading back to nothing FROM green pFadePlace[playerid]=0;//reset the steps } } return 1;}