You need to read the argument of the player name. The command gets called but the input <name> you want to 'mess' is not called. Try this:
Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_plugin("amx_mess", "1.0", "XunTric")
register_concmd("amx_mess", "cmdmess", ADMIN_KICK, "<name or #userid>")
register_concmd("amx_unmess", "cmdunmess", ADMIN_KICK, "<name or #userid>")
}
public cmdmess(id,level,cid)
{
if (!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED
new arg[32]
read_argv(1,arg,31)
new player = cmd_target(id,arg,31)
server_cmd("amx_chicken %s", player)
server_cmd("amx_llama %s", player)
server_cmd("amx_name %s DONT MESS WITH THE ADMINS", player)
return PLUGIN_HANDLED
}
Do the same for unmess and im not sure if the server_cmd with the %s will work, just test with it for a bit
__________________