SA-MP Forums Archive
How to make a /q and who join notification textdraw for player read! - 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)
+--- Thread: How to make a /q and who join notification textdraw for player read! (/showthread.php?tid=358594)



How to make a /q and who join notification textdraw for player read! - UserName31 - 11.07.2012

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


Re: How to make a /q and who join notification textdraw for player read! - WinterAce - 11.07.2012

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.


Re: How to make a /q and who join notification textdraw for player read! - UserName31 - 11.07.2012

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!!");


Re: How to make a /q and who join notification textdraw for player read! - WinterAce - 11.07.2012

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);