At the top of your code use #include <message>
Features:
- Creates an indiviual textdraw for cetian messages
- Prevents chat spam of unwanted messages
Requirements:
- zcmd.inc // #include this into your gamemode before the Message2.inc (without this the include will not function).
- sscanf2.inc // #include this into your gamemode before the Message2.inc (without this the include will not function).
- sscanf.dll/.so // Dont forget to put this in your plugin folder and write on the line "plugins" on your server.cfg.
Message Styles:
- MSG_STYLE_ERROR 1
- MSG_STYLE_INFO 2
- MSG_STYLE_USAGE 3
Functions:
- SendServerMessage(playerid, msgstyle, const message[]);
- CreateMessageTextDraw(playerid); // Place under OnPlayerConnect(playerid) Otherwise the textdraws will not show
- DestroyMessageTextDraw(playerid); // Place Under OnPlayerDisconnect(playerid, reason) Otherwise the textdraws will not show
Commands:
- /msgpos - Usage /msgpos [Custom X] [Custom Y].
- /defaultmsg
Download:
Message2.inc (solidfiles)
Message2.inc (pastebin)
ChangeLog 20/06/2015
- Rewrote code to make it more user friendly.
- Removed textdraws that was not needed.
- Fixed timer bug.
- Recolored some of the message titles.
- Removed some timers.
- Added Message Styles.
- Removed SendErrorMessage.
- Removed SendInfoMessage.
- Removed SendUsageMessage.
- Added new Function SendServerMessage.
- Added checks to see if there is already a TD timer running.
- New command to change the position of the textdraw so its in your ideal place.
- New default position command to place your textdraw back to the default position.
- Added checks to the X, Y positions.
ScreenShot:
Thanks for taking time to look at my work!
No comments:
Post a Comment