Zwracam się do was z prośbom by ktoś mógł edytować plugin czat_log. Chciałbym żeby logował jeszcze komendy amx_tsay amx_chat i amx_psay
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Czat log"
#define VERSION "0.1"
#define AUTHOR "Miczu"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say","say_handle")
register_clcmd("say_team", "say_handle")
}
public say_handle(id)
{
new stringsay[192]
new message[256]
new name[32]
new CurrentTime[9]
new data[9]
new dir[128]
new say_type[9]
get_time("%H:%M:%S",CurrentTime,8)
get_time("%Y%m%d",data,8)
get_user_name(id,name,31)
read_args(stringsay,192)
get_basedir(dir,127)
read_argv(0,say_type,8)
format(dir,127,"%s/logs/Czat_%s.log",dir,data)
format(message,255,"%s -%s- '%s' %s",name,CurrentTime,say_type,stringsay)
write_file(dir, message)
}