#include <amxmodx>
#include <fakemeta>
#include <common_functions>

#pragma ctrlchar '\'

#define AUTHOR "Lev"
#define PLUGIN "mysetinfo"
#define VERSION "0.1"

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR);
	register_clcmd("mysetinfo", "clcmd_mysetinfo");
}

public clcmd_mysetinfo(id)
{
	new userinfo[1024];
	copy_infokey_buffer(engfunc(EngFunc_GetInfoKeyBuffer, id), userinfo, charsmax(userinfo));
	ConsolePrint(id, "Your userinfo: %s\n", userinfo);
	return PLUGIN_HANDLED;
}
