SA-MP Forums Archive
[Tutorial] Join Message Using Text Draw - 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)
+---- Forum: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] Join Message Using Text Draw (/showthread.php?tid=358605)



Join Message Using Text Draw - WinterAce - 11.07.2012

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.


Re: Join Message Using Text Draw - ReneG - 11.07.2012

This is the tutorial section.


Respuesta: Join Message Using Text Draw - Chris1337 - 11.07.2012

now prepare to every server has this


Re: Join Message Using Text Draw - Max_Coldheart - 11.07.2012

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.


Re: Join Message Using Text Draw - Nicholas. - 11.07.2012

Try explaining more and not just showing the code.