PHP Code:
#include <amxmodx>
#include <cstrike>
new mapnamez[32]
new demonamez[255]
new valuez[2]
new datez[32]
get_mapname(mapnamez,32)
get_time("%y%m%d%H%M",datez,32)
public plugin_init()
{
register_plugin("Ademo", "0.01", "zZz")
}
public client_putinserver(id)
{
callbackCvarValue(id, _autorecord, valuez)
if (valuez > 0)
{
format(demonamez, 255, "record %s%s.dem",datez,mapnamez)
client_cmd(id, demonamez)
}
}
}
}
Tell me please, is everything all right with this script?
1. I want to know about command "callbackCvarValue". would it work with variable "setinfo "_autorecord" "1", which is set on client?