31.01.2016, 11:12
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");
(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
![](http://i.imgur.com/VVfmtn0.jpg?1)
Download Link:
http://pastebin.com/aduJ3Z6W
https://www.dropbox.com/s/v2xigh5zo7...Panel.inc?dl=0