[Ajuda] Textdraw n se meche
#1

bom o titulo ja diz tudo eu queria fazer a text draw se mecher que nem passa em algumas propagandas la embaixo vai andando ate o final e dps volta em fim tentei tipo assim mais so fica parado em um lugar

pawn Код:
new Mover = 0;

forward MecherTexts();

ongamemodent
SetTimer("MecherTexts",110,true);

public MecherTexts()
{
for(new i=0; i<GetMaxPlayers(); i++)
{
new string[60];
if(Mover == 0)
{
 format(string,sizeof(string),"Bem vindo ao Server");
TextDrawSetString(Move[i], string);
TextDrawShowForPlayer(i, Move[i]);
}
if(Mover == 1)
{
 format(string,sizeof(string),"           bem vindo ao server....");
TextDrawSetString(Move[i], string);
TextDrawShowForPlayer(i, Move[i]);
 Mover = 0;
}
return 1;
}
}
se precisar do Textdraw ta aqui '-'
pawn Код:
Move[i] = TextDrawCreate(0.0, 436, " ");
TextDrawUseBox(Move[i], true);
TextDrawFont(Move[i],3);
TextDrawSetOutline(Move[i], 1);
TextDrawColor(Move[i], 0xFFFFFFFF);
TextDrawBoxColor(Move[i], 0x000000AA);
TextDrawBackgroundColor(Move[i], 0x000000FF);
TextDrawUseBox(Move[i], true);
+REP
Reply
#2

pawn Код:
/*
     Filter-Script
     Mensaje Por Textdraw Dinamico
     By: Parka
*/

#include <a_samp>
#pragma tabsize 4
#define CallBack%0(%1) forward%0(%1); public%0(%1)

new Float:TD_Posicion_X;
new Text:Anuncios;
new StrText[90];
new TimeToTextdraw;

public OnFilterScriptInit()
{
    print("Mensaje Por Textdraw Dinamico By: Cesar_******");
    TimeToTextdraw = SetTimer("TextDrawsAnuncios",66,true);
    return 1;
}

public OnFilterScriptExit()
{
    KillTimer(TimeToTextdraw);
    return 1;
}

CallBack TextDrawsAnuncios( )
{
    UpDateTextDraw( Text:Anuncios ) ;
    TD_Posicion_X -= 1.0;

    if(TD_Posicion_X == -385.0000)
        {
        UpDateTextDraw(Text:Anuncios);
        TD_Posicion_X = 641.0000;
        }

    if(TD_Posicion_X == 640.0000)
    {
    new rantext = random(2);
    switch(rantext)
    {
    case 0: format(StrText,90,"~y~Mensajes aleatorios Dinamicos Con Textdraw.");  // Texto o mensaje que quieras
    case 1: format(StrText,90,"~y~SA-MP Forums Hecho Por Cesar_******.");         // Texto o mensaje que quieras
    }
    TextDrawSetString(Anuncios,StrText);
    }
    return 1;
}

CallBack UpDateTextDraw( Text:TextId )
{
    TextDrawDestroy(TextId);
    TextId = TextDrawCreate(TD_Posicion_X, 1.000000, StrText );
    TextDrawBackgroundColor(TextId , 255);
    TextDrawFont(TextId , 1);
    TextDrawSetOutline(TextId , 1);
    TextDrawSetProportional(TextId , 1);
    return TextDrawShowForAll(TextId);
}
PD: eu ser Cesar_******
Reply
#3

Quote:
Originally Posted by Parka
Посмотреть сообщение
pawn Код:
/*
     Filter-Script
     Mensaje Por Textdraw Dinamico
     By: Parka
*/

#include <a_samp>
#pragma tabsize 4
#define CallBack%0(%1) forward%0(%1); public%0(%1)

new Float:TD_Posicion_X;
new Text:Anuncios;
new StrText[90];
new TimeToTextdraw;

public OnFilterScriptInit()
{
    print("Mensaje Por Textdraw Dinamico By: Cesar_******");
    TimeToTextdraw = SetTimer("TextDrawsAnuncios",66,true);
    return 1;
}

public OnFilterScriptExit()
{
    KillTimer(TimeToTextdraw);
    return 1;
}

CallBack TextDrawsAnuncios( )
{
    UpDateTextDraw( Text:Anuncios ) ;
    TD_Posicion_X -= 1.0;

    if(TD_Posicion_X == -385.0000)
        {
        UpDateTextDraw(Text:Anuncios);
        TD_Posicion_X = 641.0000;
        }

    if(TD_Posicion_X == 640.0000)
    {
    new rantext = random(2);
    switch(rantext)
    {
    case 0: format(StrText,90,"~y~Mensajes aleatorios Dinamicos Con Textdraw.");  // Texto o mensaje que quieras
    case 1: format(StrText,90,"~y~SA-MP Forums Hecho Por Cesar_******.");         // Texto o mensaje que quieras
    }
    TextDrawSetString(Anuncios,StrText);
    }
    return 1;
}

CallBack UpDateTextDraw( Text:TextId )
{
    TextDrawDestroy(TextId);
    TextId = TextDrawCreate(TD_Posicion_X, 1.000000, StrText );
    TextDrawBackgroundColor(TextId , 255);
    TextDrawFont(TextId , 1);
    TextDrawSetOutline(TextId , 1);
    TextDrawSetProportional(TextId , 1);
    return TextDrawShowForAll(TextId);
}
PD: eu ser Cesar_******
Parka , tem algum tutorial para fazer esse tipo de Textdrawn ?
Reply
#4

Eu deveria fazer?
Reply
#5

Quote:
Originally Posted by Parka
Посмотреть сообщение
Eu deveria fazer?
Se quizer claro , mas iria ajudar muitas pessoas .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)