Hello all.
Help me please.
I have this code:
PHP Code:
#include <amxmodx>
#define PLUGIN ""
#define VERSION "0.0"
#define AUTHOR "Dimanok"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_putinserver(id)
{
new CurrentTime[9]
get_time("%H:%M:%S",CurrentTime,8)
static s_Name[32], s_Text[128], i_Flags
get_user_name(id, s_Name, charsmax(s_Name))
i_Flags = get_user_flags(id)
if (i_Flags & ADMIN_LEVEL_H)
else
public client_disconnect ( id ) {
log_to_file ("admin_activity.log",CurrentTime)
return PLUGIN_HANDLED
}
It is necessary that if the admin has the flag "t" of his visit when he came and when he came in log file as follows: Nick xx.xx.xx - xx.xx.xx
Help me please.