Quote:
Originally Posted by Celena Luna
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <colorchat>
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /test", "test")
register_clcmd("say_team /test", "test")
}
public test(id)
{
static szName[64]
get_user_name(id, szName, charsmax(szName))
ColorChat(0, GREEN, "Player %s used /test command.", szName);
}
@iceeedr: I don't think you need to hook say just for this
|
Yes, I also agree, but I like to always have a "more complete" function, in case they want to implement with others "says".