mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-07 13:48:00 -05:00
assigned groups colors! !find now reports the user's group ban appeal listed by _website group help commands so not to clog up the chat updated stats calculation speed up rcon output 0.8 -> 0.56 fixed logfile not flushing
25 lines
706 B
C#
25 lines
706 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace IW4MAdmin
|
|
{
|
|
class Heartbeat
|
|
{
|
|
public Heartbeat(Server I)
|
|
{
|
|
Handle = new Connection("http://raidmax.org/IW4M/Admin");
|
|
Instance = I;
|
|
}
|
|
|
|
public void Send()
|
|
{
|
|
String URI = String.Format("http://raidmax.org/IW4M/Admin/heartbeat.php?address={0}&name={1}&map={2}&players={3}", Instance.getPort().ToString(), Instance.getName(), Instance.getMap(), Instance.getClientNum().ToString() + '/' + Instance.getMaxClients().ToString());
|
|
Handle.Request(URI);
|
|
}
|
|
|
|
private Connection Handle;
|
|
private Server Instance;
|
|
}
|
|
}
|