[Ajuda] Como crio TexDraw no inicio do server?
#2

Exemplo!
pawn Код:
#include <a_samp>

new Text:Textdraw0;
new Text:Textdraw1;

public OnFilterScriptInit()
{
    // Create the textdraws:
    Textdraw0 = TextDrawCreate(523.000000, 414.000000, "SiLLenTz");
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 1);
    TextDrawLetterSize(Textdraw0, 0.559999, 1.800000);
    TextDrawColor(Textdraw0, 65535);
    TextDrawSetOutline(Textdraw0, 1);
    TextDrawSetProportional(Textdraw0, 1);
    TextDrawSetSelectable(Textdraw0, 0);

    Textdraw1 = TextDrawCreate(572.000000, 425.000000, "KillerS");
    TextDrawBackgroundColor(Textdraw1, 255);
    TextDrawFont(Textdraw1, 1);
    TextDrawLetterSize(Textdraw1, 0.559999, 1.800000);
    TextDrawColor(Textdraw1, -16776961);
    TextDrawSetOutline(Textdraw1, 1);
    TextDrawSetProportional(Textdraw1, 1);
    TextDrawSetSelectable(Textdraw1, 0);

    for(new i; i < MAX_PLAYERS; i ++)
    {
        if(IsPlayerConnected(i))
        {
            TextDrawShowForPlayer(i, Textdraw0);
            TextDrawShowForPlayer(i, Textdraw1);
        }
    }
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

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

// Resposta do dialog de login/registro

/*  TextDrawHideForAll(Textdraw0);
    TextDrawDestroy(Textdraw0);
    TextDrawHideForAll(Textdraw1);
    TextDrawDestroy(Textdraw1);*/
Reply


Messages In This Thread
Como crio TexDraw no inicio do server? - by yuran - 31.12.2012, 06:57
Re: Como crio TexDraw no inicio do server? - by mau.tito - 31.12.2012, 09:43
Re: Como crio TexDraw no inicio do server? - by Kuddy - 31.12.2012, 09:49
Re: Como crio TexDraw no inicio do server? - by leigorm - 01.01.2013, 15:06
Re: Como crio TexDraw no inicio do server? - by Galhardo - 01.01.2013, 15:13

Forum Jump:


Users browsing this thread: 1 Guest(s)