KickPlayer function added in playerlist

This commit is contained in:
alexfriesen
2016-04-30 17:03:19 +02:00
parent 1ce541e2b0
commit c9b2ee8335
2 changed files with 23 additions and 0 deletions
+7
View File
@@ -32,6 +32,13 @@ function PlayerListController( $scope, rconService, $interval )
return null;
}
$scope.KickPlayer = function ( id )
{
rconService.Command( 'kick ' + id );
$scope.Refresh();
}
rconService.InstallService( $scope, $scope.Refresh )
var timer = $interval( function ()