Quote:
Originally Posted by DjSoftero
You're wrong. Other way would be for a client to use console command, which is less convenient..
|
Really no
Code:
#include <amxmodx>
#include <amxmisc>
new g_Tags[MAX_PLAYERS+1][32];
public plugin_init()
{
register_plugin("Test","0.1","SmileY");
register_clcmd("say","SayHandle");
register_clcmd("say_team","SayHandle");
register_clcmd("/tag","cmdTag",ADMIN_ALL,"<tag> - Register a tag in chat");
}
public SayHandle(id)
{
new Args[192];
read_args(Args,charsmax(Args));
remove_quotes(Args);
if(Args[0] == '/')
{
client_cmd(id,Args);
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
public cmdTag(id,level,cid)
{
if(!cmd_access(id,level,cid,2))
{
return PLUGIN_HANDLED;
}
read_argv(1,g_Tags[id],charsmax(g_Tags[]));
client_print(id,print_chat,"[TAG] %s tag was set.",Tag);
return PLUGIN_CONTINUE;
}
A simple example, no messagemode here
__________________