11.07.2012, 03:49
hmm, first add this
then, under OnPlayerConnect in your game mode put this:
then under OnGameModeInIt add this
Код:
new Text:ConnectTD;
Код:
new newtext[41], names[MAX_PLAYER_NAME]; GetPlayerName(playerid,names,MAX_PLAYER_NAME); format(newtext, sizeof(newtext), "%s has joined the server.", names); TextDrawSetString(ConnectTD, newtext); TextDrawShowForAll(ConnectTD);
Код:
ConnectTD = TextDrawCreate(633.000000,412.000000,"Player has joined the server"); TextDrawFont(ConnectTD,1); TextDrawSetShadow(ConnectTD,0); TextDrawSetOutline(ConnectTD,1); TextDrawAlignment(ConnectTD,3); TextDrawLetterSize(ConnectTD,0.399999,1.500000); TextDrawColor(ConnectTD,COLOR_LIGHTRED);