Kód:
new PLUGIN[]="SimpleLog"
new AUTHOR[]="n!nja"
new VERSION[]="1.0"
public plugin_init()
{
        register_plugin(PLUGIN, VERSION, AUTHOR)
    register_cvar("amx_logging", "1")
   
    return PLUGIN_CONTINUE
}
public client_connect(id)
{   
        if(get_cvar_num("amx_logging") == 1)
        {
                new username[33]
                new ipaddress[33]
                new logline[192]
                new filename[15]
                new mapname[65]
                new CurrentTime[11]
                get_time("%Y:%m:%D",CurrentTime,10)
                format(filename, 14, "%s.log",CurrentTime);
                get_user_name(id, username, 32)
                get_user_ip(id, ipaddress, 32)
                get_mapname(mapname, 64)
                format(logline, 191, "Nev: %s   IP: %s  Ido: %s Map: %s", username, ipaddress, CurrentTime, mapname)
                log_to_file(filename, logline)
        }
        return PLUGIN_HANDLED
}
 
ez jó! 

 köszöntem! 
