23.01.2012, 18:34
(
Last edited by Universal; 15/07/2012 at 03:49 PM.
)
uMessageBox 2.2
Updated: 2012.07.15
AboutUpdated: 2012.07.15
Its an include used for outputting some information for user in a message box style. It also can be used as an alert box. Its very easy to use and easy to modify to fit your needs. Things like box width, height, color, x or y location are customisable. You dont need to create multiple textdraws anymore! Its easy as it looks like!
NOTE: You dont need to worry about deleting, creating anything upon player connect or disconnect! This is managed automatically using ALS hooking.
Functions
pawn Code:
/*
This function shows the message box for the specified player.
You can also set the sound which will be played upon popup.
*/
ShowPlayerMessageBox( playerid, title[], content[], sound = 0, timeout = DEFAULT_TIMEOUT )
/*
This function instantly hides the messagebox.
*/
HidePlayerMessageBox( playerid )
/*
Updates the current active messagebox.
It also can reset the timeout with a new one if the last param is specified.
*/
UpdatePlayerMessageBox( playerid, title[] = "", content[] = "", timeout = 0 )

Download
- Version 2.2:
Pastebin
- Version 2.1:
Not available
- Version 2.0:
Not available
- Version 1.1:
Not available
- Version 1.0:
Not available
Code:
Version 1.0 - Initial release Version 1.1 - Bug fixing Version 2.0 - Fully rewritten system - Fixed some minor bugs - Added title for the messagebox - Added sound support upon popup Version 2.1 - Replaced char arrays with normal arrays Version 2.2 - Fixed a bug with UpdatePlayerMessageBox