Hey i was making my second script. Im really noob at this just as you know. I got a name changer plugin, llama plugin and chicken plugin. And i tryed to make a command called amx_mess which makes you llama, chicken and changes your name too "DONT MESS WITH THE ADMINS". And another command that removes the stuff... I know i forgot some lines to indentify the user so amxx knows who to "mess" up. So i need some help.
Here it is:
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
server_cmd("amx_chicken %s")
server_cmd("amx_llama %s")
server_cmd("amx_name %s DONT MESS WITH THE ADMINS")
return PLUGIN_HANDLED
}
public cmdunmess(id,level,cid)
{
if (!cmd_acces(id,level,cid,2))
return PLUGIN_HANDLED
server_cmd("amx_unchicken %s")
server_cmd("amx_unllama %s")
server_cmd("amx_name %s I CAN CHANGE MY NAME BACK NOW")
return PLUGIN_HANDLED
}