Siemka,
Mam pytanie czy mógłby mi ktoś przerobić tak plugin aby nie które wiadomości (wypisane) nie pojawiały się w logach?
#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^n",name,CurrentTime,say_type,stringsay) write_file(dir, message) }
Chodzi mi o /rank /hp /me /top15 - resztę sobie sam dodam.
Po prostu aby po wpisaniu przez graczy na sayu lub tsayu nie pojawiały się w logach.
Daje +