All pastes #886264 Raw Edit

TDMover

public cpp v1 · immutable
#886264 ·published 2008-01-31 15:43 UTC
rendered paste body
#include <a_samp>//Defines#define TEXT "New vehicles colors !! " //change the text if you want ^^#define Y 380.00 //Float:Y of the TextDraw#define TDUB 0 //TextDrawUseBox (set to 0 or 1)#define TDC 0x00FF00FF //TextDrawColor#define TDF 1 //TextDrawFont#define TDBC 0x808080FF //TextDrawBackgroundColor#define TDSO 1 //TextDrawSetOutline//forwardforward TextDrawMove();new TDM;//new TDT;new Text:txt[64]; // NB : Text numéro 0 jamais utilisépublic OnFilterScriptInit(){    TDM = 0;	SetTimer("TextDrawMove",100,1);    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);	    TextDrawBackgroundColor(txt[i],TDBC);	    TextDrawSetOutline(txt[i],TDSO);	    TextDrawUseBox(txt[i],TDUB);	    TextDrawFont(txt[i],TDF);	}    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);    	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;}