• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Library] PopupMessageTD
#1
Lightbulb 
Greetings dear Burgershot members.



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
  Reply
#2
Any screenshots?
  Reply
#3
Since it is a TextDraw based include most people want to know how does it look before they install it, would be nice if you included some screenshots
  Reply
#4
Pictures?
Check out Desolation Roleplay, where zombie AI and scavenging is bothered by player bandits!


  Reply
#5
(2020-12-04, 12:22 PM)Awide Wrote: Pictures?



Error:

[Image: UeaHR3z.png]



Info:

[Image: GxtyT81.png]



Success:

[Image: rsDF4Ij.png]
[Image: c9CyzPf.png]
  Reply


Forum Jump: