SA-MP Forums Archive
[Ajuda] TextDrawCreate - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] TextDrawCreate (/showthread.php?tid=414620)



TextDrawCreate - JuniorRock - 10.02.2013

meu servidor tem um text draw que fala o nome do sv e etc,Eu queria saber como descobro as cordenadas da tela...

Esse text draw diz a hora,o dia,o forum e o nomedo do sv,Eu queria trocar de lugar
pawn Код:
ServerLogo1 = TextDrawCreate(550.0,405.0, "~w~~h~~h~Brasil~r~Second~y~Life~b~RP");
    TextDrawFont(ServerLogo1, 1);
    TextDrawColor(ServerLogo1, 0xFFFFFFFF);
    TextDrawLetterSize(ServerLogo1, 0.5, 2.0);
    TextDrawSetOutline(ServerLogo1, 1);
    TextDrawSetProportional(ServerLogo1, 1);
    TextDrawAlignment(ServerLogo1, 2);
    TextDrawBackgroundColor(ServerLogo1, 0x000000FF);
    TextDrawSetShadow(ServerLogo1, 1);

    gettime(ClockTime[tHour], ClockTime[tMinute], ClockTime[tSecond]);
    getdate(ClockTime[dYear], ClockTime[dMonth], ClockTime[dDay]);

    new str[128];
    format(str,128, "%s~n~%02d:%02d:%02d - %02d/%02d ~n~%d/%d",SITE_URL, ClockTime[tHour], ClockTime[tMinute], ClockTime[tSecond], ClockTime[dDay], ClockTime[dMonth], Online, GetMaxPlayers());

    ServerLogo2 = TextDrawCreate(550.0,423.0, str);
    TextDrawFont(ServerLogo2, 2);
    TextDrawColor(ServerLogo2, 0xE5E5E5FF);
    TextDrawLetterSize(ServerLogo2, 0.2, 0.7);
    TextDrawSetOutline(ServerLogo2, 1);
    TextDrawSetProportional(ServerLogo2, 1);
    TextDrawAlignment(ServerLogo2, 2);
    TextDrawBackgroundColor(ServerLogo2, 0x000000FF);
    TextDrawSetShadow(ServerLogo2, 1);
Exemplo





Re: TextDrawCreate - zSuYaNw - 10.02.2013

Код:
ServerLogo1 = TextDrawCreate(550.0,405.0, "~w~~h~~h~Brasil~r~Second~y~Life~b~RP");
Код:
ServerLogo2 = TextDrawCreate(550.0,423.0, str);



Re: TextDrawCreate - JuniorRock - 10.02.2013

Acho que voce nao entendeu,Eu quero colocar o text no rodape mesmo,so que quero deixar no meio da tela nao no canto,no canto ja estava


Re: TextDrawCreate - zSuYaNw - 10.02.2013

Й sу mudar as posiзхes citadas no meu post anterior.