Всё гораздо проще. #include <amxmodx>
new logfile[30] = "addons/amxmodx/configs/cmdlogfile.log"
public client_command(id)
{
new command[90], parametrs[30], name [25]
read_argv(0, command, 29)
read_args(parametrs, 29)
get_user_name(id, name, 24)
new CurrentTime[25]
get_time("%c", CurrentTime, 24)
format(command, 89, "^n%s^t%s:^t%s %s", CurrentTime, name, command, parametrs)
writefile(logfile, command)
}
Правда сразу предупреждаю, будет очень много мусора