Jump to content

Recommended Posts

Posted

Overview

The Show IP plugin provides administrators with a convenient way to view player IP addresses directly from the game console. This is useful for server management, detecting ban evaders, and monitoring player connections.

Plugin Information

  • Name: Show IP
  • Version: 1.1
  • Author: steams.ro
  • Required Access: ADMIN_KICK flag

Installation

  1. Place showip.sma in your AMX Mod X scripting folder (addons/amxmodx/scripting/)
  2. Compile the plugin using the AMX Mod X compiler
  3. Move the compiled showip.amxx file to addons/amxmodx/plugins/
  4. Add showip.amxx to your plugins.ini file
  5. Restart the server or change the map

Commands

Main Command

amx_ip <target>

Usage Examples

1. Check a specific player's IP

amx_ip PlayerName

Output: [AMXX] PlayerName's IP address: 192.168.1.100

2. Check all Counter-Terrorist team IPs

amx_ip @CT

Output:

[AMXX] IP addresses for CT team:
1) Player1 - 192.168.1.100
2) Player2 - 192.168.1.101
3) Player3 - 192.168.1.102

3. Check all Terrorist team IPs

amx_ip @T

Output:

[AMXX] IP addresses for T team:
1) Player4 - 192.168.1.103
2) Player5 - 192.168.1.104

4. Check all connected players' IPs

amx_ip *

Output:

[AMXX] IP addresses for all players:
1) Player1 - 192.168.1.100
2) Player2 - 192.168.1.101
3) Player3 - 192.168.1.102
4) Player4 - 192.168.1.103
5) Player5 - 192.168.1.104

Target Options

Target Description Example
<playername> Specific player by name or partial name amx_ip John
@CT All Counter-Terrorist players amx_ip @CT
@T All Terrorist players amx_ip @T
* All connected players amx_ip *

Access Requirements

  • Admins must have the ADMIN_KICK flag to use this command
  • The plugin respects immunity settings when targeting specific players

Features

Display individual player IP addresses
Display team-based IP lists (CT/T)
Display all connected players' IPs
Shows IPs without ports (cleaner display)
Immunity system support
Error handling for invalid targets
Console output for easy copy/paste

Error Messages

Error Cause Solution
Invalid team. Use @CT or @T Wrong team syntax Use @CT or @T only
Command output shows no results Player/team not found Verify the target exists
Access denied message Insufficient permissions Ensure you have ADMIN_KICK flag

Technical Details

IP Display Format

  • IPs are shown without port numbers (using flag 1 in get_user_ip())
  • Format: xxx.xxx.xxx.xxx

Performance

  • Minimal server impact
  • Instant execution
  • No background processes

Compatibility

  • AMX Mod X: 1.8.2 or higher
  • Game: Counter-Strike 1.6
  • Platform: Windows & Linux

Common Use Cases

1. Ban Evasion Detection

Check if a suspicious player is using the same IP as a previously banned player:

amx_ip SuspiciousPlayer

2. Multi-Account Detection

Compare IPs of different players to detect multiple accounts:

amx_ip Player1
amx_ip Player2

3. Team Balance Monitoring

Check all team IPs to detect friends playing together:

amx_ip @CT
amx_ip @T

4. Server Audit

Get a complete list of all connected IPs for logging:

amx_ip *

Privacy & Legal Notice

⚠️ Important: This plugin displays personal information (IP addresses). Server operators should:

  • Comply with local data protection laws (GDPR, CCPA, etc.)
  • Inform players that their IPs may be logged
  • Only use this data for legitimate server administration
  • Secure admin access to prevent misuse
  • Never share player IPs publicly

Changelog

Version 1.1

  • Fixed critical bug where player names were overwritten by IPs
  • Improved code structure and removed duplicate code
  • Added proper error handling for invalid targets
  • Updated to use modern AMXX practices (charsmax())
  • Added team validation for @CT and @T commands
  • Improved console output formatting
  • Better immunity handling with cmd_target() flags

Version 1.0 (Original)

  • Initial release
  • Basic IP display functionality

Support

For issues, suggestions, or contributions:

  • Website: steams.ro
  • Forum: AMX Mod X community forums

Credits

  • Original Concept: $uicid3
  • Fixed & Updated by: steams.ro
  • Community: AMX Mod X developers

License

This plugin is free to use and modify for personal and commercial servers. Please maintain author credits when redistributing.

amx_ip.amxx amx_ip.sma

×
×
  • Create New...