11.07.2012, 04:20
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:
Then, find
and add this after the {
Finally, find
and add this after the {
Thanks, please rep me.
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;
Код:
public OnGameModeInit()
Код:
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);
Код:
public OnPlayerConnect(playerid)
Код:
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);