код с [KAC] status disabled сам бы не додумался)
Code
public OnPluginStart()
{
RegConsoleCmd("server", Command);
}
public Action:Command(client, args)
{
new Handle:cvar = FindConVar("hostip");
new hostip = GetConVarInt(cvar);
new Handle:hostport = FindConVar("hostport");
decl String:ServerIp[32];
decl String:ServerPort[1024];
FormatEx(ServerIp, 32, "%u.%u.%u.%u", hostip >>> 24 & 255, hostip >>> 16 & 255, hostip >>> 8 & 255, hostip & 255);
GetConVarString(hostport, ServerPort, 1024);
PrintToChatAll("%s:%s", ServerIp, ServerPort);
return Plugin_Handled;
}