#include using namespace std; public plugin_init(){ register_clcmd('say', 'say'); } public say(id){ new steamid[32]; get_user_authid(id, steamid, 31); new txt[192]; read_args(txt, 192); remove_quotes(txt); new nick[32]; get_user_name(id, nick, 31); new filename[128] = "addons/amxmodx/logs/"; add(filename, 127, steamid, 31); add(filename, 127, ".log", 5); new logline[512] = "User "; add(logline, 511, nick, 31); add(logline, 511, " said: ", 8); add(logline, 511, txt, 191); log_to_file(filename, log); }