rconService.getUsers() will get and parse the userdata

PlayerInfo displays Info and provide a link to steam profile
Dropdown in the Playerlist offers more options the selected Player
This commit is contained in:
alexfriesen
2016-05-18 14:10:03 +02:00
parent 7a6a1e13fc
commit 172ee95216
5 changed files with 107 additions and 10 deletions
+14 -3
View File
@@ -1,9 +1,9 @@
function RconService()
{
var s = {};
s.Callbacks = {};
var s = {
Callbacks: {}
};
s.Connect = function ( addr, pass )
{
@@ -102,5 +102,16 @@ function RconService()
}
}
s.getUsers = function(scope, success) {
this.Request( "playerlist", scope, function ( response )
{
var players = JSON.parse( response.Message );
if(typeof success === 'function') {
success.call(scope, players);
}
});
}
return s;
}