Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Releases Libraries [Library] PopupMessageTD

 
  • 0 Vote(s) - 0 Average
Library PopupMessageTD
Logan
Offline

Burgershot Member
Posts: 21
Threads: 5
Joined: Jun 2019
Reputation: 1
Location: Croatia
#1
2020-08-31, 06:45 PM (This post was last modified: 2020-08-31, 06:47 PM by Logan.)
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
Sasuke_uchiha
Offline

Burgershot Member
Posts: 3
Threads: 0
Joined: Oct 2020
Reputation: 0
Location: Pakistan
#2
2020-10-03, 09:41 PM
Any screenshots?
Toxic
Offline

Burgershot Member
Posts: 4
Threads: 1
Joined: Nov 2020
Reputation: 0
Location: Bosnia and Herzegovina
#3
2020-12-04, 11:58 AM
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
Awide
Offline

Burgershot Member
Posts: 62
Threads: 5
Joined: Sep 2019
Reputation: 5
#4
2020-12-04, 12:22 PM
Pictures?
Desolation Roleplay has closed. You can download the gamemode here: https://www.burgershot.gg/showthread.php?tid=2272
Chaprnks
Offline

Burgershot Member
Posts: 9
Threads: 0
Joined: May 2019
Reputation: 0
Location: Soviet America
#5
2021-03-21, 02:47 AM
(2020-12-04, 12:22 PM)Awide Wrote: Pictures?

Error:
[Image: UeaHR3z.png]

Info:
[Image: GxtyT81.png]

Success:
[Image: rsDF4Ij.png]
[Image: ZlUkUJb.png]
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode