[FilterScript] Barra con Movimiento [v2]
#1

INFORMACIУN: Un Script con TextDraw en movimiento, para poder modificarlo a su gusto. El TextDraw se mueve por abajo del radar.

VIDEO:

[ame]http://www.youtube.com/watch?v=JFimeCtwGoU[/ame]

BUGS: Ninguno, avisar asн los reparamos.

DESCARGA: http://www.megaupload.com/?d=K5IM3XEY

CREDITOS:
V1: GROVE4L. ( http://forum.sa-mp.com/showthread.ph...ght=movimiento )
V2: Yo.

NOTA: Para aumentarle la velocidad buscar la linea: "posicion += 5;" y aumentar el 5 a la velocidad que quieran.

Fecha de Creaciуn: 22 Dic 2010 ( sуlo que me olvidй de postearlo xD )
Reply
#2

Muy bien hecho! El de Grove era un poco mбs complicado.

P.D Por poco y te decнa que te falto el .amx xD Pero cualquiera lo saca compilando ._.
Reply
#3

jaja, se.. pero cuando grove lo hizo reciйn empezaba, cuando yo lo edite grove lo podrнa haber echo tranquilamente.
Reply
#4

Muy bueno, bajando..
saludos
Reply
#5

esta bacano xD oye jackdaniel te qdo bueno pero seria mejor si ubieras hecho un comando que
se pudiera editar IN-GAME seria cool xD, ha pero digo el texto xD se pueda editar
Reply
#6

Acб tenйs Veto:

pawn Код:
#include <a_samp>

new Text:Fondo;
new Text:Texto;
new posicion;
new texto[128] = "www.gamerol.net";
public OnGameModeInit()
{
    posicion = -185;
    Fondo = TextDrawCreate(1.000000,438.000000,"_");
    Texto = TextDrawCreate(posicion,445, texto);
   
    TextDrawUseBox(Fondo,1);
    TextDrawBoxColor(Fondo,0x00000099);
    TextDrawTextSize(Fondo,640.000000,5.000000);
    TextDrawAlignment(Fondo,0);
    TextDrawSetProportional(Fondo,1);
    TextDrawBackgroundColor(Fondo,0x000000ff);
    TextDrawSetShadow(Fondo,1);
    TextDrawFont(Fondo,3);
    TextDrawLetterSize(Fondo,1.000000,3.000000);
    TextDrawColor(Fondo,0xffffffff);
    TextDrawSetOutline(Fondo,1);

    TextDrawColor(Texto,0xffffffff);
    TextDrawSetProportional(Texto,1);
    TextDrawAlignment(Texto,0);
    TextDrawFont(Texto,2);
    TextDrawBackgroundColor(Texto,0x000000ff);
    TextDrawLetterSize(Texto,0.499999,1.899999);
   
    SetTimer("Mover", 175, 1);
    TextDrawHideForAll(Texto);
    return 1;
}

public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid,Fondo);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    new cmd[128], idx;
    cmd = strtok(cmdtext, idx);
    if(strcmp(cmd, "/mov", true) == 0)
    {
        new tmp[128];
        tmp = strtok(cmdtext, idx);
        if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Utilizб: /mov [texto].");
        texto = tmp;
        return 1;
    }
    return 0;
}

forward Mover();
public Mover()
{
    posicion += 5;
    if(posicion <= 635)
    {
        TextDrawHideForAll(Texto);
        Texto = TextDrawCreate(posicion,435, texto);
        TextDrawShowForAll(Texto);
    }
    else
    {
        posicion -= 810;
    }
}

strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }

    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}
Mejor pasalo a cmdtext, que sino no te va a dejar usar espacios... 0 ganas de hacerlo.
Reply
#7

hola no sabras como hacer para que se mueva de derecha a izquierda?

y tambien cuando pongo espacios pasan fails... LAS LETRAS SE UNEN Y SALEN 2 esos son bugs..
Reply
#8

No son bugs, estб echo para que no se ponga espacios. Si quieren poner espacios, deberбn editar el comando sin usar strtok ( vйase, cmdtext )
Reply
#9

Quote:
Originally Posted by [J]ulian
Посмотреть сообщение
No son bugs, estб echo para que no se ponga espacios. Si quieren poner espacios, deberбn editar el comando sin usar strtok ( vйase, cmdtext )
Osea que si en donde editamos en donde esta el texto de "www.talpagina.net" (lo hice para no hacer spam) si brincamos espacios no funcionarб, їNo?
Reply
#10

Quote:
Originally Posted by Lunnatiicz
Посмотреть сообщение
Osea que si en donde editamos en donde esta el texto de "www.talpagina.net" (lo hice para no hacer spam) si brincamos espacios no funcionarб, їNo?
si funcionara pero con bugs digamos si pones espacios saldran 2 text draws uno moviendose y otro no o se quedara pasmado uno ahora yo le pregunto a el autor si tiene un timer o algo por qeu al cabo de un tiempo los text draw se dejan de mover y ya no aparecen...y no he dejado espacios їq puede ser?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)