public takeScreen(array[2]) { new victim = array[1] new id = array[0] //new ip[16] new steam_id[35] get_user_authid ( id, steam_id, 34 ) new g_IP[17] get_user_ip(id, g_IP, 16) new timestamp[32], HUDText[32], name[32], adminname[32] get_time("%d.%m.%Y - %H:%M:%S", timestamp, 31) get_user_name(victim, name, 31) get_user_name(id, adminname, 31) get_pcvar_string(CvarHUDText, HUDText, 31) switch(get_pcvar_num(CvarTimestamptype)) { case 0: { ColorChat(id, RED, "%s %L", PREFIX, id, "SS_CHAT_INFO", name, adminname) client_cmd(victim, "snapshot") } case 1: { ColorChat(id, RED, "%s %L", PREFIX, id, "SS_CHAT_INFO2", name, adminname, timestamp) client_cmd(victim, "snapshot") } case 2: { set_hudmessage(225, 225, 225, 0.02, 0.90, 0, 1.0, 2.0) show_hudmessage(victim, HUDText) client_cmd(victim, "snapshot") } case 3: { set_hudmessage(225, 225, 225, 0.02, 0.90, 0, 1.0, 2.0) show_hudmessage(victim, HUDText) ColorChat(id, RED, "%s %L", PREFIX, id, "SS_CHAT_INFO2", name, adminname, timestamp) client_cmd(victim, "snapshot") } } log_to_file("addons/amxmodx/logs/screenlog.txt"," name: ^"%s^" | IP: ^"%s^" | STEAMID: %s | admin: ^"%s^" ^n",name,g_IP, steam_id, adminname); return PLUGIN_CONTINUE }