How to add textdraw
#1

How can i add this textdraw to my server?

I want it so, it only works when a player enters a certain checkpoint.

This is the checkpoint:
pawn Код:
if (gCheckpoint[18] == checkpointid) {
pawn Код:
Textdraw0 = TextDrawCreate(351.000000, 198.000000, "/buyheal - To Heal Yourself ($1000) /Buycure - To Cure Yourself ($4500) /healall - To heal/Cure Yourself ($5000)");
        TextDrawBackgroundColor(Textdraw0, 255);
        TextDrawFont(Textdraw0, 2);
        TextDrawLetterSize(Textdraw0, 0.360000, 1.500000);
        TextDrawColor(Textdraw0, 16777215);
        TextDrawSetOutline(Textdraw0, 0);
        TextDrawSetProportional(Textdraw0, 1);
        TextDrawSetShadow(Textdraw0, 1);
        TextDrawUseBox(Textdraw0, 1);
        TextDrawBoxColor(Textdraw0, 255);
        TextDrawTextSize(Textdraw0, 644.000000, 1377.000000);
Reply
#2

When he entered the checkpoint :
TextDrawShowForPlayer(playerid,td);

When he exits the checkpoint:
TextDrawHideForPlayer(playerid,td);
Reply
#3

But where do i put the whole textdraw code


Код:
		Textdraw0 = TextDrawCreate(351.000000, 198.000000, "/buyheal - To Heal Yourself ($1000) /Buycure - To Cure Yourself ($4500) /healall - To heal/Cure Yourself ($5000)");
		TextDrawBackgroundColor(Textdraw0, 255);
		TextDrawFont(Textdraw0, 2);
		TextDrawLetterSize(Textdraw0, 0.360000, 1.500000);
		TextDrawColor(Textdraw0, 16777215);
		TextDrawSetOutline(Textdraw0, 0);
		TextDrawSetProportional(Textdraw0, 1);
		TextDrawSetShadow(Textdraw0, 1);
		TextDrawUseBox(Textdraw0, 1);
		TextDrawBoxColor(Textdraw0, 255);
		TextDrawTextSize(Textdraw0, 644.000000, 1377.000000);
Reply
#4

Quote:
Originally Posted by MWF2
But where do i put the whole textdraw code


Код:
		Textdraw0 = TextDrawCreate(351.000000, 198.000000, "/buyheal - To Heal Yourself ($1000) /Buycure - To Cure Yourself ($4500) /healall - To heal/Cure Yourself ($5000)");
		TextDrawBackgroundColor(Textdraw0, 255);
		TextDrawFont(Textdraw0, 2);
		TextDrawLetterSize(Textdraw0, 0.360000, 1.500000);
		TextDrawColor(Textdraw0, 16777215);
		TextDrawSetOutline(Textdraw0, 0);
		TextDrawSetProportional(Textdraw0, 1);
		TextDrawSetShadow(Textdraw0, 1);
		TextDrawUseBox(Textdraw0, 1);
		TextDrawBoxColor(Textdraw0, 255);
		TextDrawTextSize(Textdraw0, 644.000000, 1377.000000);
Under :
pawn Код:
public OnGameModeInit()
{
 return 1;
}
Reply
#5

Ok, I did that. Now, Every time i spawn the textdraw is shown....I have no idea why and it doesnt go away at all
Reply
#6

anyone?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)