Textdraw
#1

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??
Reply
#2

it doesnt have time to show i think.
Reply
#3

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.
Reply
#4

also show us deathbox1 and deathbox2
Reply
#5

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);
Reply
#6

have u checked with command?
Reply
#7

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

Reply
#8

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
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)