How to make a /q and who join notification textdraw for player read!
#1

hello i want to know how to make when people /q to show a text draw who join and who left the server let say something like this here the text draw



Quit: playername(id)
Join: playername(id)


see just pretent thats a text draw just like that but show the player name simple
Reply
#2

Just out of major curiosity before I go ahead and help you with this, why would you want a text draw for this? Wouldn't it be rather annoying having a text draw popping up everytime people leave and join, especially when/if your server gets quite busy.

If you want, I could help you with a SendClientMessageToAll ? Which would mean everytime someone joins or leaves your server, it will send everyone a message.
Reply
#3

but i want the textdraw to stay down on right side of screen like at map but other side and i already know how to do

SendClientMessageToAll(playerid, COLOR_YELLOW ,"hI ALL!!");
Reply
#4

hmm, first add this

Код:
new Text:ConnectTD;
then, under OnPlayerConnect in your game mode put this:

Код:
    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);
then under OnGameModeInIt add this

Код:
    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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)