void HUDDisplay::addPlayerToList(int num, const char* name, int Reputation, bool isLegend, bool isDev, bool isPunisher, bool isInvitePending, bool isPremium, bool local)
{
if(!Inited) return;
Scaleform::GFx::Value var[11];
var[0].SetInt(num);
var[1].SetInt(num);
// dirty stl :)
std::string sUser = name;
int pos = 0;
while((pos= sUser.find('<'))!=-1)
sUser.replace(pos, 1, "<");
while((pos = sUser.find('>'))!=-1)
sUser.replace(pos, 1, ">");
var[2].SetString(sUser.c_str());
const char* algnmt = getReputationString(Reputation);
if(isDev)
algnmt = "";
var[3].SetString(algnmt);
var[4].SetBoolean(isLegend);
var[5].SetBoolean(isDev);
var[6].SetBoolean(isPunisher);
var[7].SetBoolean(isInvitePending);
var[8].SetBoolean(false);
var[9].SetBoolean(isPremium);
var[10].SetBoolean(local);
gfxHUD.Invoke("_root.api.addPlayerToList", var, 11);
}