SA-MP Forums Archive
[Include] Textdraw Chat Panel - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Textdraw Chat Panel (/showthread.php?tid=599877)



Textdraw Chat Panel - Tamy - 31.01.2016

Textdraw Chat Panel
Introduction:

This is a chat panel made at the bottom right of the screen using Textdraws.

How does it work?

Код:
(1) createChatPanel();
(2) destroyChatPanel();
(3) hidePlayerChatPanel(playerid);
(4) showPlayerChatPanel(playerid);
(5) addChatMessage(msgstr[], color[]="white");
(1) This creates all the textdraws of the chat panel, put this under OnGameModeInit() or OnFilterScriptInit()
(2) This destroys all the textdraws of the chat panel, put this under OnGameModeExit() or OnFilterScriptExit()
(3) This hides this chat panel for a player.
(4) This shows the chat panel to a player.
(5) This adds the message in the panel and update the panel accordingly. The valid colors for this are "white", "blue", "red", "yellow" and "green", by default, it's white.

Screenshots



Download Link:

http://pastebin.com/aduJ3Z6W
https://www.dropbox.com/s/v2xigh5zo7...Panel.inc?dl=0


Re: Textdraw Chat Panel - Marcuse - 31.01.2016

Its really great!
I think i will find a good use for this on my server!
Rep


Re: Textdraw Chat Panel - SyS - 31.01.2016

good work keep it up going to use it on my server


Re: Textdraw Chat Panel - AlexBlack - 31.01.2016

Well done, i'am thinking about a per player chat panel like :

Код:
createPlayerChatPlayer(playerid);



Re: Textdraw Chat Panel - SkyFlare - 31.01.2016

Quote:
Originally Posted by AlexBlack
Посмотреть сообщение
Well done, i'am thinking about a panel per player chat panel like :

Код:
createPlayerChatPlayer(playerid);
@Tamy Really like the look of this!
@Alex... sounds like that panel per player would be good too! you just gave me an idea as well


Re: Textdraw Chat Panel - Tamy - 31.01.2016

Quote:
Originally Posted by Marcuse
Посмотреть сообщение
Its really great!
I think i will find a good use for this on my server!
Rep
Thank you and good luck!

Quote:
Originally Posted by Sreyas
Посмотреть сообщение
good work keep it up going to use it on my server
Great! Thanks for the feedback

Quote:
Originally Posted by AlexBlack
Посмотреть сообщение
Well done, i'am thinking about a panel per player chat panel like :

Код:
createPlayerChatPlayer(playerid);
Thanks! and good idea, good luck for it

Quote:
Originally Posted by SkyFlare
Посмотреть сообщение
@Tamy Really like the look of this!
@Alex... sounds like that panel per player would be good too! you just gave me an idea as well
Thanks


Re: Textdraw Chat Panel - LOCS - 31.01.2016

Use full thanks for the release bro *thumbs up*


Re: Textdraw Chat Panel - Tamy - 31.01.2016

Quote:
Originally Posted by LOCS
Посмотреть сообщение
Use full thanks for the release bro *thumbs up*
Thank you!


Re: Textdraw Chat Panel - Riddick94 - 31.01.2016

Think of adding a new liner using "\n", since you can put in chat over 64 characters (twice of that can be inserted). Also, I'd personally aligned text to the left, so it's in one straight line, if you read from the left, for instance:

Код:
| Text1: abc.
| Text2: cba.
| Text3: bca.
Instead of:

Код:
 | Text1: abc
   | Text2: cba.
  | Text3: bca.
Like on your picture.


Re: Textdraw Chat Panel - Tamy - 01.02.2016

Quote:
Originally Posted by Riddick94
Посмотреть сообщение
Think of adding a new liner using "\n", since you can put in chat over 64 characters (twice of that can be inserted). Also, I'd personally aligned text to the left, so it's in one straight line, if you read from the left, for instance:

Код:
| Text1: abc.
| Text2: cba.
| Text3: bca.
Instead of:

Код:
 | Text1: abc
   | Text2: cba.
  | Text3: bca.
Like on your picture.
Thanks for the feedback, I had this idea in my mind before but then for some reason, I liked to keep it in center, people who'd like to change it always have an option to change it.

Quote:
Originally Posted by HaRdiiZin
Посмотреть сообщение
Very useful.
Nice!
Thanks