#include <amxmodx>
new LogFile[128];
public plugin_init()
{
register_plugin("Log Connect", "1.0", "Leo_[BH]")
new Date[32]
get_time("%Y-%m-%d",Date,31)
format(LogFile, 127, "addons/amxmodx/logs/connect-%s.log", Date)
}
public client_authorized(id)
{
new name[32], steamid[36], ip_ip[24];
get_user_name(id, name, 31);
get_user_authid(id, steamid, 35);
get_user_ip(id, ip_ip, 23, 1);
log_to_file(LogFile, "%s %s %s", ip_ip, steamid, name)
}
// Другие плагины от Leo_[BH] на http://vk.com/cs_rain
// Разработка серверов: https://goo.gl/forms/GIyvSAw1IJ48szDn2