SA-MP Forums Archive
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: Textdraw (/showthread.php?tid=649584)



Textdraw - ivndosos - 11.02.2018

I've made 2 simple deathboxes when u die

onplayerdeath callback

Код:
    TextDrawShowForPlayer(playerid,deathbox1);
    TextDrawShowForPlayer(playerid,deathbox2);
onplayerspawn callback
Код:
    TextDrawHideForPlayer(playerid, deathbox1);
    TextDrawHideForPlayer(playerid, deathbox2);
for some reason it doesnt show when I die??


Re: Textdraw - PepsiCola23 - 11.02.2018

it doesnt have time to show i think.


Re: Textdraw - Mugala - 11.02.2018

are u sure textdraws are well made?
try to use this textdraws with command.
if the textdraws wont appear, problem must be in textdraw's options.


Re: Textdraw - PepsiCola23 - 11.02.2018

also show us deathbox1 and deathbox2


Re: Textdraw - ivndosos - 11.02.2018

yes they are well made

Код:
	deathbox1 = TextDrawCreate(660.000000, -11.000000, "_");
	TextDrawBackgroundColor(deathbox1, 255);
	TextDrawFont(deathbox1, 1);
	TextDrawLetterSize(deathbox1, 0.500000, 7.000000);
	TextDrawColor(deathbox1, -1);
	TextDrawSetOutline(deathbox1, 0);
	TextDrawSetProportional(deathbox1, 1);
	TextDrawSetShadow(deathbox1, 1);
	TextDrawUseBox(deathbox1, 1);
	TextDrawBoxColor(deathbox1, 140);
	TextDrawTextSize(deathbox1, -250.000000, 0.000000);

	deathbox2 = TextDrawCreate(660.000000, 394.000000, "_");
	TextDrawBackgroundColor(deathbox2, 255);
	TextDrawFont(deathbox2, 1);
	TextDrawLetterSize(deathbox2, 0.500000, 7.000000);
	TextDrawColor(deathbox2, -1);
	TextDrawSetOutline(deathbox2, 0);
	TextDrawSetProportional(deathbox2, 1);
	TextDrawSetShadow(deathbox2, 1);
	TextDrawUseBox(deathbox2, 1);
	TextDrawBoxColor(deathbox2, 140);
	TextDrawTextSize(deathbox2, -250.000000, 0.000000);



Re: Textdraw - Mugala - 11.02.2018

have u checked with command?


Re: Textdraw - dani18 - 11.02.2018

yeah, use a command for testing
PHP код:
CMD:test(playeridparams[]){
TextDrawShowForPlayer (playeriddeathbox1);
TextDrawShowForPlayer (playeriddeathbox2);
return 
1;




Re: Textdraw - ivndosos - 11.02.2018

Quote:
Originally Posted by dani18
Посмотреть сообщение
yeah, use a command for testing
PHP код:
CMD:test(playeridparams[]){
TextDrawShowForPlayer (playeriddeathbox1);
TextDrawShowForPlayer (playeriddeathbox2);
return 
1;

yeah works just find


Re: Textdraw - Mugala - 11.02.2018

codes are correct than, ensure that you're not using TextDrawHideForPlayer(playerid, deathbox1 and deathbox2) in other scripts


Re: Textdraw - ivndosos - 11.02.2018

I'm not, I posted it only in the 2 callbacks I've stated above