[AJUDA] Textdraw
#1

bom atualmente uso o sistema gl_realtime so que eu botei no gm mas tb tenho uma texdraw fiz outra ja fiz tudo direito so que n ta aparecendo no server

atualmente esta assim

Код:
public OnGameModeInit()
{
    SetGameModeText("Ligth Street Drift v1.0");
    forum = TextDrawCreate(1.000000,437.000000," ~y~Visite e Confira >>~r~http://lsddrift.blogspot.com~y~<< Visite e Confira~r~ Versao: ~y~1.5");
    TextDrawUseBox(forum,1);
    TextDrawBoxColor(forum,0x00000066);
    TextDrawTextSize(forum,641.000000,0.000000);
    TextDrawAlignment(forum,0);
    TextDrawBackgroundColor(forum,0x000000ff);
    TextDrawFont(forum,3);
    TextDrawLetterSize(forum,0.399999,1.100000);
    TextDrawColor(forum,0xffffffff);
    TextDrawSetOutline(forum,1);
    TextDrawSetProportional(forum,1);
    TextDrawSetShadow(forum,1);
    txtTimeDisp = TextDrawCreate(605.0,25.0,"00:00");
	TextDrawUseBox(txtTimeDisp, 0);
	TextDrawFont(txtTimeDisp, 3);
	TextDrawSetShadow(txtTimeDisp,0); 
    TextDrawSetOutline(txtTimeDisp,2); 
    TextDrawBackgroundColor(txtTimeDisp,0x000000FF);
    TextDrawColor(txtTimeDisp,0xFFFFFFFF);
    TextDrawAlignment(txtTimeDisp,3);
	TextDrawLetterSize(txtTimeDisp,0.5,1.5);

	UpdateTime();
	SetTimer("UpdateTime",1000 * 60,1);
queria botar esse


Код:
new Text:Textdraw0;
Код:
Textdraw0 = TextDrawCreate(30.000000, 322.000000, "http://lsddrift.blogspot.com");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.260000, 1.600000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
Reply
#2

pawn Код:
#include <a_samp>

new Text:Textdraw0;

public OnGameModeInit()
{
    Textdraw0 = TextDrawCreate(30.000000, 322.000000, "http://lsddrift.blogspot.com");
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 1);
    TextDrawLetterSize(Textdraw0, 0.260000, 1.600000);
    TextDrawColor(Textdraw0, -1);
    TextDrawSetOutline(Textdraw0, 1);
    TextDrawSetProportional(Textdraw0, 1);
    return 1;
}

public OnGameModeExit()
{
    TextDrawHideForAll(Textdraw0);
    TextDrawDestroy(Textdraw0);
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    TextDrawHideForPlayer(playerid, Textdraw0);
    return 1;
}

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

public OnPlayerSpawn(playerid)
{
    TextDrawShowForPlayer(playerid, Textdraw0);
    return 1;
}
Reply
#3

Sу subistitui.
pawn Код:
public OnGameModeInit()
{
    SetGameModeText("Ligth Street Drift v1.0");
   
    forum = TextDrawCreate(30.000000, 322.000000, "http://lsddrift.blogspot.com");
    TextDrawBackgroundColor(forum, 255);
    TextDrawFont(forum, 1);
    TextDrawLetterSize(forum, 0.260000, 1.600000);
    TextDrawColor(forum, -1);
    TextDrawSetOutline(forum, 1);
    TextDrawSetProportional(forum, 1);
   
   
    txtTimeDisp = TextDrawCreate(605.0,25.0,"00:00");
    TextDrawUseBox(txtTimeDisp, 0);
    TextDrawFont(txtTimeDisp, 3);
    TextDrawSetShadow(txtTimeDisp,0);
    TextDrawSetOutline(txtTimeDisp,2);
    TextDrawBackgroundColor(txtTimeDisp,0x000000FF);
    TextDrawColor(txtTimeDisp,0xFFFFFFFF);
    TextDrawAlignment(txtTimeDisp,3);
    TextDrawLetterSize(txtTimeDisp,0.5,1.5);

    UpdateTime();

    SetTimer("UpdateTime",1000 * 60,1);

    return 1;
}
Reply
#4

vlw vou testar
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)