Alright no one took on my request, so I figured it out myself without coding knowledge. Added Choke and Loss information.
PHP Code:
public Action sm_datarates(int client, int args)
{
if(client == 0) return Plugin_Handled;
PrintToConsole(client, "\n\n");
char buffer[1024];
Format(buffer, sizeof(buffer), "%20s %10s %6s %6s %10s %10s %13s %13s %6s %6s", " name", " rate", "update", "cmd", "in: KB/s", "out: KB/s", "in: ping ms", "out: ping ms", "choke", "loss");
PrintToConsole(client, buffer);
for(int i = 1; i <= MaxClients; i++)
{
if(!IsClientInGame(i) || IsFakeClient(i)) continue;
Format(buffer, 20, "%N", i);
Format(buffer, sizeof(buffer), "%20s %-10i %-6.0f %-6.0f %-10.2f %-10.2f %-13.0f %-13.0f %-6.0f %-6.0f", buffer, GetClientDataRate(i), GetClientAvgPackets(i, NetFlow_Outgoing), GetClientAvgPackets(i, NetFlow_Incoming), GetClientAvgData(i, NetFlow_Outgoing)/1000.0, GetClientAvgData(i, NetFlow_Incoming)/1000.0, GetClientAvgLatency(i, NetFlow_Outgoing)*1000.0, GetClientAvgLatency(i, NetFlow_Incoming)*1000.0, GetClientAvgChoke(i, NetFlow_Outgoing)*100.0, GetClientAvgLoss(i, NetFlow_Both)*100.0);
PrintToConsole(client, buffer);
}
return Plugin_Handled;
}
It appears to be working, if I did it incorrectly, let me know. :p