Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Test"
#define VERSION "0.0"
#define AUTHOR "test"
static mapname[32]
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
get_mapname(mapname, 31)
}
public client_putinserver(id)
{
new value[2]
get_user_info(id, "_autorecord", value, 1)
if(equal(value, "1"))
{
new timedata[32], demoname[100]
get_time("%y%m%d%H%M", timedata, 31)
format(demoname, 99, "%s%s.dem", timedata, mapname)
client_cmd(id, "record", "%s", demoname)
}
return PLUGIN_CONTINUE
}
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>