/*
Bryan
Exile Server Manager
Returns the online players names and uids. Then sends them to the website
*/
_data = [];
// Loop through all the players on the server
if (count(allPlayers) > 0) then
{
{
// Make sure they are alive
if (alive _x) then
{
_data pushBack
[
name _x,
getPlayerUID _x
];
};
false
}
count allPlayers;
};
// THIS IS PURELY FOR TESTING PURPOSES SINCE I HAVE NO FRIENDS AND THE ABOVE CODE WON'T FIRE WHEN THERE IS NOBODY ON THE SERVER. :(
{
_data pushBack (_x select 0);
_data pushBack (_x select 1);
}
forEach
[
["accid", "76561197996768574"],
["Radric Davis", "76561197960311301"],
["Eftre", "76561197960521023"],
["BorgeJ", "76561197961178114"],
["BettySwollocks", "76561197961236752"],
["MalukuZ", "76561197961403928"],
["fredd", "76561197961594563"],
["Gladimir Putin", "76561197964121082"]
];
// Send to the dll
["updatePlayers", _data] call ExileServerManager_util_dll_call;