View Single Post
Plugin Info:     Modification:          Category:          Approver:   EKS (166)
Batman/Gorlag
Senior Member
Join Date: Aug 2005
Old 09-14-2005 , 04:26   helpful_messages
Reply With Quote #1

Description

This plugin may sound useless to people, but I can assure you it's pretty useful to coders. Read on below if you are interested about what this plugin can do.

VERSION 1.0

PURPOSE OF PLUGIN: To catch log event messages! Like when you respawn, plant the bomb, die, drop the bomb, when the round has started, ended, etc.

Have you scriptors ever wanted to catch an event, like when the round has started or ended, when the user has dropped the bomb, or planted it, so that you can tell the server what to do if that event happens? Well this plugin is the answer if you want to know all of the log event messages, and when it is triggered. This plugin will give you log messages, one argument at a time, incase you want to call a function at a specific time but do not know the arguments of the log event message.

AMX-COMMAND: amx_message <1=Enable, 0=Disable> Allow users to view logevent messages

CVAR: message_enable 1 //Default is 1, set to 0 to disable the log messages.

NOTE: This plugin should only be used if you are planning to use the native function register_logevent(const function[], argsnum(number of args in message), ...(catch message here)) to catch an event like when the round starts, end, who gets killed, etc, for future plugins you might make.

P.S.: THIS PLUGIN IS NOT USELESS, IN FACT IT CAN BE VERY HELPFUL, WHEN YOU ARE CODING YOUR OWN PLUGIN AND WANT TO CATCH AN EVENT! EVEN I AM USING THIS PLUGIN TO WRITE FUTURE PLUGINS.

Added an image so you guys can see how the plugin will look like.
Attached Files
File Type: sma Get Plugin or Get Source (helpful_messages.sma - 2404 views - 3.7 KB)
File Type: zip log_image.zip (340.7 KB, 1601 views)
__________________
GRR If only the amxmod programming were in Java.....
Java and C used to be two different languages, now Java is turning into another C. My logevent plugin
Batman/Gorlag is offline