Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Plugin generated by AMXX-Studio */
- #include amxmodx
- #include amxmisc
- #define REQ_ACCESS ADMIN_CHAT
- #define PROTECT_ACCESS ADMIN_IMMUNITY
- #define PROTECT_STEAMIDS 1 // 1 == On, 0 == Off //
- new const g_iProtectedSteamIDs [ ] [ ] =
- {
- "STEAM_ID_LAN",
- "VALVE_ID_LAN"
- }
- public plugin_init() register_plugin( "Players Log Info", "1.0", "xDoctor" );
- public client_connect( index ) ConsoleInfo( index, 1 );
- public client_disconnect( index ) ConsoleInfo( index, 0 );
- ConsoleInfo( const Player, const DidWhat )
- {
- new g_iTargetIp[ 33 ], g_iName[ 33 ], g_iSteamID[ 33 ];
- get_user_name( Player, g_iName, charsmax( g_iName ) );
- get_user_authid( Player, g_iSteamID, charsmax( g_iSteamID ) );
- get_user_ip( Player, g_iTargetIp, charsmax( g_iTargetIp ) );
- for( new i; i < get_maxplayers(); i++ )
- {
- if( get_user_flags( Player ) & PROTECT_ACCESS && PROTECT_ACCESS != ADMIN_ALL )
- continue;
- if( equali( g_iSteamID, g_iProtectedSteamIDs[ i ] ) && PROTECT_STEAMIDS == 1 )
- continue;
- if( get_user_flags( i ) & REQ_ACCESS && is_user_connected( i ) )
- client_print( i, print_console, "%s %s. SteamID: %s, IP: %s", g_iName, DidWhat == 1 ? "Connected" : "Disconnected", g_iSteamID, g_iTargetIp );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement