[AJUDA]Text Draw
#1

Ae galera eu vim recorrer ao topico como unica alternativa , e q uma ves eu vi num server Text Draw ficava mudando sosinho e eu queria criar eu procurei q so em blogs no site do sa-mp, maz nгo achei e eu ficaria muito feliz se vcs me ajudasem.
Reply
#2

mudar sozinho??

como assim?
Reply
#3

e tipo assim por exemplo: tem o nome sa-mp ai muda pra teste so sinho. ai dai ele fica so mudando pra outro onomes ate voltar pro primeiro.
Reply
#4

ha oh pah nao testei tenta ai e diz alguma coisa...

:P ate box e tudo tem xD
pawn Код:
#include <a_samp>

new Text:Textdraw0, timerz;

forward ChangeText();

public OnFilterScriptInit()
{
    Textdraw0 = TextDrawCreate(499.000000, 119.000000, "SA-MP");
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 2);
    TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
    TextDrawColor(Textdraw0, 65535);
    TextDrawSetOutline(Textdraw0, 1);
    TextDrawSetProportional(Textdraw0, 1);
    TextDrawUseBox(Textdraw0, 1);
    TextDrawBoxColor(Textdraw0, 102);
    TextDrawTextSize(Textdraw0, 563.000000, 3.000000);
  SetTimer("ChangeText", 5000, 1);
    for(new i; i < MAX_PLAYERS; i ++)
    {
        if(IsPlayerConnected(i))
        {
            TextDrawShowForPlayer(i, Textdraw0);
        }
    }
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

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

public ChangeText()
{
    if(timerz == 0)
    {
        TextDrawSetString(Textdraw0, "SA:MP");
        timerz = 1;
    }
    else
    {
        TextDrawSetString(Textdraw0, "Test!");
        timerz = 0;
    }
}
Reply
#5

ae mano deu serto valeu de coraзгo...
Reply
#6

ae mano tem como colocar mais nomes la? eu tentei sendo q da um erro sera q tem como colocar outro, se tiver me dis como foi q vc coloco ok ?
Reply
#7

pawn Код:
#include <a_samp>

new Text:Textdraw0, timerz;

forward ChangeText();

public OnFilterScriptInit()
{
    Textdraw0 = TextDrawCreate(499.000000, 119.000000, "SA-MP");
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 2);
    TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
    TextDrawColor(Textdraw0, 65535);
    TextDrawSetOutline(Textdraw0, 1);
    TextDrawSetProportional(Textdraw0, 1);
    TextDrawUseBox(Textdraw0, 1);
    TextDrawBoxColor(Textdraw0, 102);
    TextDrawTextSize(Textdraw0, 563.000000, 3.000000);
  SetTimer("ChangeText", 5000, 1);
    for(new i; i < MAX_PLAYERS; i ++)
    {
        if(IsPlayerConnected(i))
        {
            TextDrawShowForPlayer(i, Textdraw0);
        }
    }
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

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

public ChangeText()
{
    if(timerz == 0)
    {
        TextDrawSetString(Textdraw0, "SA:MP");
        timerz = 1;
    }
    else if(timerz == 1)
    {
        TextDrawSetString(Textdraw0, "Test!");
        timerz = 2;
    }
    else if(timerz == 2)
    {
        TextDrawSetString(Textdraw0, "Outro String");
        timerz = 0;
    }
}
ve como eu fiz nas ultimas linhas
Reply
#8

vlw manooooooooooooooooooooooooooooooooooooooooooooooo funfo
Reply
#9

ae mano vc sabe fazer tipo asim se eu chegar numa gz ai aparece o nome da gz e a que gang pertence ? e que eu to fazendo um fs de gang wars ai as gz sгo dominaveis ai eu tava tentando colocar entendeu ? se vc suber fazer me add no msn e: judson_diogo22@hotmail.com
Reply
#10

usa o

IsPlayerInRangeOfPoint??
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)