Raised This Month: $ Target: $400
 0% 

Plugin that runs "say thetime" when started recording a demo from console


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
XerX
New Member
Join Date: Oct 2007
Old 08-03-2009 , 12:31   Plugin that runs "say thetime" when started recording a demo from console
Reply With Quote #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");
}
XerX is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:28.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode