[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


Messages In This Thread
Join Message Using Text Draw - by WinterAce - 11.07.2012, 04:20
Re: Join Message Using Text Draw - by ReneG - 11.07.2012, 06:17
Respuesta: Join Message Using Text Draw - by Chris1337 - 11.07.2012, 06:23
Re: Join Message Using Text Draw - by Max_Coldheart - 11.07.2012, 06:32
Re: Join Message Using Text Draw - by Nicholas. - 11.07.2012, 06:45

Forum Jump:


Users browsing this thread: 1 Guest(s)