[Ajuda] Textolabel nгo parece versгo nova
#6

Quote:
Originally Posted by Noobgamex
Посмотреть сообщение
Tente isso!

:::::Lб em cima do GM:::::

pawn Код:
new Text3D:TextsFix [10] //[10] Quantos textos haverб no server.
    Load3DTextsFix();
    Destroy3DTextsFix();
::::::Lб no final do GM::::::

pawn Код:
stock Load3DTextsFix()
{
    TextsFix[0] = CreateDynamic3DTextLabel("TEXTO AQUI", Cor, cordenadaX, cordenadaY, cordenadaZ, 30.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 200.0);
    return 1;
}
ou meu ja ta mais ou menos assim

pawn Код:
// Portхes Info Text
new Text3D:potextoid[MAX_PORTOES];

// ongamemodeinit
LoadFilesIniItens();

stock LoadFilesIniItens()
{
for(new strpt[128], portaoid, portao = 0; portao < MAX_PORTOES; portao++)
    {
        if(proximoportao != MAX_PORTOES)
        {
            format(strpt, sizeof(strpt), PASTA_PORTOES, portao);
            if(dini_Exists(strpt))
            {
                if(dini_Int(strpt, "TDono") == 0)
                {
                    portaoid = CreateDynamicObject(dini_Int(strpt, "Modelo"), dini_Float(strpt, "fCordX"), dini_Float(strpt, "fCordY"), dini_Float(strpt, "fCordZ"), dini_Float(strpt, "fCordRX"), dini_Float(strpt, "fCordRY"), dini_Float(strpt, "fCordRZ"), -1, -1, -1, 200.0);
                    dini_IntSet(strpt, "Id", portaoid);
                    format(STRX, sizeof(STRX), "{FFFF00}/ap %d {FF0000}para abrir\n{FFFF00}/fp %d {FF0000}para fechar", portao, portao);
                    potextoid[portao] = CreateDynamic3DTextLabel(STRX, -1, dini_Float(strpt, "fCordX"), dini_Float(strpt, "fCordY"), dini_Float(strpt, "fCordZ"), 30.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 200.0);
                    proximoportao++;
                }
                else
                {
                    if(dini_Int(strpt, "TDono") == 1)
                    {
                        portaoid = CreateDynamicObject(dini_Int(strpt, "Modelo"), dini_Float(strpt, "fCordX"), dini_Float(strpt, "fCordY"), dini_Float(strpt, "fCordZ"), dini_Float(strpt, "fCordRX"), dini_Float(strpt, "fCordRY"), dini_Float(strpt, "fCordRZ"), -1, -1, -1, 200.0);
                        dini_IntSet(strpt, "Id", portaoid);
                        format(STRX, sizeof(STRX), "{FFFF00}/ap %d {FF0000}para abrir\n{FFFF00}/fp %d {FF0000}para fechar", portao, portao);
                        potextoid[portao] = CreateDynamic3DTextLabel(STRX, -1, dini_Float(strpt, "fCordX"), dini_Float(strpt, "fCordY"), dini_Float(strpt, "fCordZ"), 30.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 200.0);
                        proximoportao++;
                    }
                    else
                    {
                        dini_IntSet(strpt, "TDono", 3);
                        dini_Set(strpt, "Dono", "Ninguem");
                        dini_IntSet(strpt, "Id", INVALID_OBJECT_ID);
                        proximoportao++;
                    }
                }
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Textolabel nгo parece versгo nova - by Dieguinho - 05.03.2014, 18:14
Re: Textolabel nгo parece versгo nova - by PT - 05.03.2014, 18:36
Re: Textolabel nгo parece versгo nova - by Dieguinho - 05.03.2014, 18:50
Re: Textolabel nгo parece versгo nova - by Dieguinho - 05.03.2014, 19:54
Re: Textolabel nгo parece versгo nova - by Noobgamex - 05.03.2014, 21:13
Re: Textolabel nгo parece versгo nova - by Dieguinho - 05.03.2014, 22:55

Forum Jump:


Users browsing this thread: 1 Guest(s)