rendered paste body//-----0000----0----0--------00000---------0-------000000-----------------------
//-----0---0----0--0---------0----0-------0-0------0----------------------------
//-----0000------0-----------00000-------0---0-----00000------------------------
//-----0---0----0------------0-00-------0000000----0----------------------------
//-----0000----0-------------0---00----0-------0---0-----------------by R@f ©---
//Thanks to Syg for the corrections
#include <a_samp>
//Defines
#define TEXT "Text Draw Mover By Raf" //change the text if you want ^^
#define Y 380.00 //Float:Y of the TextDraw
#define TDUB 0 //TextDrawUseBox
#define TDC 0x00FF00FF //TextDrawColor
#define TDBC -- //TextDrawBoxColor
#define TDF 1 //TextDrawFont
#define TDSO 1 //TextDrawSetOutline
#define TDSS 1 //TextDrawSetShadow
#define TDLSX 1 //TextDrawLetterSize X
#define TDLSY 1 //TextDrawLetterSize Y
#define TDTSX 1 //TextDrawTextSize X
#define TDTSY 1 //TextDrawTextSize Y
//forward
forward TextDrawMove();
new TDM;
new TDT;
new Text:txt[64]; // NB : Text numéro 0 jamais utilisé
public OnFilterScriptInit()
{
TDM = 0;
print("|||||||||||||||||||||||||||||||||||||||||||||");
print("|||||||..::Moving Text Draw By R@f::..|||||||");
print("|||||||||||||||||||||||||||||||||||||||||||||");
for (new i=1 ; i<=63 ; i++)
{
txt[i] = TextDrawCreate (10.00*i,Y,TEXT);
TextDrawColor(txt[i],TDC);
TextDrawSetOutline(txt[i],TDSO);
TextDrawUseBox(txt[i],TDUB);
// TextDrawBoxColor(txt[i],TDBC);
TextDrawFont(txt[i],TDF);
TextDrawSetShadow(txt[i],TDSS);
/*Comment the line that you don't want to use*/
// TextDrawLetterSize(txt[i],TDLSX,TDLSY);
// TextDrawTextSize(txt[i],TDTSX,TDTSY);
}
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(IsPlayerAdmin(playerid))
{
if(strcmp(cmdtext, "/tdmon", true) == 0) {
TDT=SetTimer("TextDrawMove",100,1);
return 1;
}
else if(strcmp(cmdtext, "/tdmoff", true) == 0) {
KillTimer(TDT);
TextDrawHideForAll(txt[TDM]);
return 1;
}
}
return 0;
}
public TextDrawMove()
{
if (TDM == 0)
{
TextDrawShowForAll(txt[1]);
TextDrawHideForAll(txt[63]);
TDM++;
}
else if (TDM == 63)
{
TextDrawHideForAll(txt[63]);
TDM = 0;
}
else
{
TextDrawShowForAll(txt[TDM+1]);
TextDrawHideForAll(txt[TDM]);
TDM++;
}
return 1;
}