Greetings dear Burgershot members.
I made this simple, yet effective?include a year ago?ago for server I was scripting, it is very useful as an SendClientMessage Textdraw alternative, for "non-relevant" messages like errors etc that pile up player's chatbox unecessary. It is located in bottom center of the screen, and it is very appropriate for notifications.
Intro
I made this simple, yet effective?include a year ago?ago for server I was scripting, it is very useful as an SendClientMessage Textdraw alternative, for "non-relevant" messages like errors etc that pile up player's chatbox unecessary. It is located in bottom center of the screen, and it is very appropriate for notifications.
How to install it/implement it?
It depends if you're using modular/non-modular style of coding on your gamemode.?If you're using modular, just #include it?into your main gamemode file. Else, just paste it somewhere on top of your script where you defined public functions/stocks/etc. From functions in your GM, if you want to use it, there are only TWO important functions, the others are used internally in module:
Code:
SendMessage(playerid, MESSAGE_TYPE = MESSAGE_TYPE_NONE, message[])
SendFormatMessage(playerid, MESSAGE_TYPE = MESSAGE_TYPE_NONE, const message[],? va_args<>)
How it works/what does it do?
Very simple. It breaks strings passed into message string longer than 100 chars. You can find out the rest by looking at the code. It also automatically determines average reading time for passed string, depending on char count and number of words.
Download:
PopupMessageTD?- Pastebin.com link
Hope you like it. Greetings, Logan