You can try:
PHP Code:
#include <amxmodx>
#include <colorChat>
#define PLUGIN "IP show"
#define VERSION "1.0"
#define AUTHOR "Fantarn"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /ip", "serverip")
}
public serverip(id)
{
new szIP[ 32 ]
get_user_ip( !is_dedicated_server( ), szIP, charsmax(szIP) )
ColorChat(0, GREEN, "The Server ip is %s", szIP)
}