[Tutorial] Join Message Using Text Draw
#1

Tutorial: Join Message Using Text Draw.
Difficulty: Easy
How To: Copy & Paste

First of all, add this at the top of your game mode or find 'new' and add it underneath the others there:

Код:
new Text:ConTD;
Then, find
Код:
public OnGameModeInit()
and add this after the {

Код:
        ConTD = TextDrawCreate(633.000000,412.000000,""); // BugsY (AKA WinterAce) Script
	TextDrawFont(ConTD,1);
	TextDrawSetShadow(ConTD,0);
	TextDrawSetOutline(ConTD,1);
	TextDrawAlignment(ConTD,3);
	TextDrawLetterSize(ConTD,0.399999,1.500000);
	TextDrawColor(ConTD,COLOR_RED);
Finally, find
Код:
public OnPlayerConnect(playerid)
and add this after the {

Код:
       new newtext[41], joining[MAX_PLAYER_NAME];
       GetPlayerName(playerid, joining, MAX_PLAYER_NAME);
       format(newtext, sizeof(newtext), "%s has joined the server", joining); // BugsY (AKA WinterAce Script)
       TextDrawSetString(ConTD, newtext);
       TextDrawShowForAll(ConTD);
Thanks, please rep me.
Reply
#2

This is the tutorial section.
Reply
#3

now prepare to every server has this
Reply
#4

This is the TUTORIALS section. If you didn't understand, read it again. TUTORIALS. You have to explain everything you do, and yet you haven't explained anything. You've just told the people reading this tutorial to "find this and copy - paste this there". That doesn't help them learn. This isn't a tutorial.
Reply
#5

Try explaining more and not just showing the code.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)