[Include] Textdraw Chat Panel
#1

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
Reply
#2

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

good work keep it up going to use it on my server
Reply
#4

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

Код:
createPlayerChatPlayer(playerid);
Reply
#5

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
Reply
#6

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
Reply
#7

Use full thanks for the release bro *thumbs up*
Reply
#8

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

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.
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)