First:
So to start off with, this is required in-order to access team balance natives.
#include <nd_balancer>
Then
Then your plugin will have access to the GetTeamDifference()
float. Simply call this float function to get the team difference and re-inventing the wheel will not be required. It will return a positive value float if the team difference is in Consorts favour or a negative float value if it's in Empires favour.
I have not constructed the native yet, but your plugin will compile successfully as the line is added. I will add this native a bit later in the upcoming days. It shouldn't take too long to complete.
Next:
You will need to use something in-order to pass values to web. There are multiple options available. A few include socket, steamworks, steamtools and curl
. I would prefer that an extension already on the server like socket
(only supports http) or steamworks
is used if at all possible; but, it's not limited to that. Links to these extensions and the updater plugin (possibly a useful resource) is here.
Resources
The Sourcemod API is located here.
I can request a sub domain on xenogamers.com be used for Redstone. With ftp access, much like other things like motds and fastdls already have. This would be a good place to host this content.