/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #define PLUGIN "When was admin for crazy-clan.pl" #define VERSION "1.0" #define AUTHOR "DarkGL" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("amx_ssmenu","funkcja_szpiegujaca") } public funkcja_szpiegujaca(id){ if(is_user_admin(id)){ new file[32],Time[7] get_time("%d%m%y",Time,8) format(file,31,"admin_%s.log",Time) new name[32],sid[64] get_user_name(id,name,31) get_user_authid(id,sid,63) log_to_file(file,"admin %s steamid:%s",name,sid) } }
w folderze logs będziesz miał pliki o nazwie admin_data w których będzie nick admina i jego steam_id