|
Author
|
Message
|
|
New Member
|

08-03-2009
, 12:31
Plugin that runs "say thetime" when started recording a demo from console
|
#1
|
I tried to make a plugin which displays the current time(using "say thetime") when I type "record" in the console. I already tried in 2 different ways but it doesn't work. Here's what I tried and please correct where necessary or propose a new solution. Thank you in advance.
Code 1:
Quote:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN_NAME "record and thetime"
#define PLUGIN_VERSION "0.1"
#define PLUGIN_AUTHOR "darkspeed"
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
register_concmd("record", "record_time", ADMIN_ALL, "record thetime")
}
public record_time(id)
{
client_cmd(id, "say thetime");
}
|
Code 2:
Quote:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN_NAME "record and thetime"
#define PLUGIN_VERSION "0.1"
#define PLUGIN_AUTHOR "darkspeed"
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
register_clcmd("record", "record_time", ADMIN_ALL, "record thetime")
}
public record_time(id)
{
client_cmd(id, "say thetime");
}
|
|
|
|
|