Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- /*
- Fade:
- Exemplos
- CallFadeInit(Text:iTextoGeral, playerid,120,0,0,0,0,3500);
- CallFadeInit(Text:iBordaGeral, playerid,120,0,0,0,0,3500);
- CallFadeInit(Text:iBordaAbaixo, playerid,120,0,0,0,0,3500);
- Modo de Uso:
- CallFadeInit(TextDraw,Index,Intervalo,Red,Blue,Green,Transparencia,Tempo Total);
- Créditos:
- Sistema de Fade em TextDraw Simples criado por DraKiNs
- www.ips-team.blogspot.com ~ www.ips-team.forumeiros.com
- */
- //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- new
- iFade[0x5],
- iTransp[0x5],
- iFadeRgb[0x5][0x4];
- forward CallFadeProcess(Text:iText,iPlayer,iSpeed,iTemp);
- public CallFadeProcess(Text:iText,iPlayer,iSpeed,iTemp)
- {
- iFadeRgb[_:iText][0x3] += ((0xFF / (iTemp / iSpeed)) - iTransp[_:iText]);
- TextDrawColor(iText,((iFadeRgb[_:iText][0x0] * 0x1000000) + (iFadeRgb[_:iText][0x1] * 0x0010000) + (iFadeRgb[_:iText][0x2] * 0x0000100) + (iFadeRgb[_:iText][0x3])));
- TextDrawShowForPlayer(iPlayer,iText);
- return iFade[_:iText] = SetTimerEx("CallFadeProcess",iSpeed,false,"dddd",_:iText,iPlayer,iSpeed,iTemp), false;
- }
- CallStopFade(Text:iText,iPlayer);
- public CallStopFade(Text:iText,iPlayer)
- {
- return KillTimer(iFade[_:iText]);
- }
- CallFadeInit(Text:iArray,iPlayer,iSpeed,iR,iG,iB,iTrast,iTemp)
- {
- iFadeRgb[_:iArray][0x0] = iR;
- iFadeRgb[_:iArray][0x1] = iG;
- iFadeRgb[_:iArray][0x2] = iB;
- iTransp[_:iArray] = iTrast;
- CallFadeProcess(Text:iArray,iPlayer,iSpeed,iTemp);
- SetTimerEx("CallStopFade",iTemp,false,"dd",_:iArray,iPlayer);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement