SA-MP Forums Archive
I Need Help With textdraw! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: I Need Help With textdraw! (/showthread.php?tid=618186)



I Need Help With textdraw! - TYDS - 02.10.2016

I Have Make A textdraw with ipleomax but i don't know where i put that code:
Код:
new Text:Textdraw0;


Textdraw0 = TextDrawCreate(560.625000, 413.583404, "TGAME.VN");
TextDrawLetterSize(Textdraw0, 0.449999, 2.591666);
TextDrawTextSize(Textdraw0, -62.500000, -317.916564);
TextDrawAlignment(Textdraw0, 1);
TextDrawColor(Textdraw0, -1);
TextDrawSetShadow(Textdraw0, 3);
TextDrawSetOutline(Textdraw0, 0);
TextDrawBackgroundColor(Textdraw0, 51);
TextDrawFont(Textdraw0, 3);
TextDrawSetProportional(Textdraw0, 1);



Re: I Need Help With textdraw! - Gotham - 02.10.2016

Put it at the top of ur script below includes/defines


Re: I Need Help With textdraw! - TYDS - 02.10.2016

Quote:
Originally Posted by Gotham
Посмотреть сообщение
Put it at the top of ur script below includes/defines
let's me try


Re: I Need Help With textdraw! - Rdx - 02.10.2016

Lol, no.

Top:

Quote:

new Text:Textdraw0;

OnGameModeInit:

Quote:

Textdraw0 = TextDrawCreate(560.625000, 413.583404, "TGAME.VN");
TextDrawLetterSize(Textdraw0, 0.449999, 2.591666);
TextDrawTextSize(Textdraw0, -62.500000, -317.916564);
TextDrawAlignment(Textdraw0, 1);
TextDrawColor(Textdraw0, -1);
TextDrawSetShadow(Textdraw0, 3);
TextDrawSetOutline(Textdraw0, 0);
TextDrawBackgroundColor(Textdraw0, 51);
TextDrawFont(Textdraw0, 3);
TextDrawSetProportional(Textdraw0, 1);




Re: I Need Help With textdraw! - TYDS - 02.10.2016

Quote:
Originally Posted by Rdx
Посмотреть сообщение
Lol, no.

Top:



OnGameModeInit:
it's not work


Re: I Need Help With textdraw! - lackmail - 02.10.2016

Quote:
Originally Posted by TYDS
Посмотреть сообщение
it's not work
you need to show the textdraw under on player connect

Код:
public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid, Textdraw0);
    return 1;
}



Re: I Need Help With textdraw! - TYDS - 02.10.2016

Quote:
Originally Posted by lackmail
Посмотреть сообщение
you need to show the textdraw under on player connect

Код:
public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid, Textdraw0);
    return 1;
}
it's still not work


Re: I Need Help With textdraw! - lackmail - 02.10.2016

Quote:
Originally Posted by TYDS
Посмотреть сообщение
it's still not work
its works

Код:
new Text:Textdraw0;

public OnFilterScriptInit()
{
	Textdraw0 = TextDrawCreate(560.625000, 413.583404, "TGAME.VN");
	TextDrawLetterSize(Textdraw0, 0.449999, 2.591666);
	TextDrawTextSize(Textdraw0, -62.500000, -317.916564);
	TextDrawAlignment(Textdraw0, 1);
	TextDrawColor(Textdraw0, -1);
	TextDrawSetShadow(Textdraw0, 3);
	TextDrawSetOutline(Textdraw0, 0);
	TextDrawBackgroundColor(Textdraw0, 51);
	TextDrawFont(Textdraw0, 3);
	TextDrawSetProportional(Textdraw0, 1);

	return 1;
}

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



Re: I Need Help With textdraw! - CannonBolt - 02.10.2016

Isn't Per-Player Textdraws only for OnPlayerConnect?