From c9b2ee83354e81dcfec841e0af80487bd52f2e77 Mon Sep 17 00:00:00 2001 From: alexfriesen Date: Sat, 30 Apr 2016 17:03:19 +0200 Subject: [PATCH] KickPlayer function added in playerlist --- html/playerlist.html | 16 ++++++++++++++++ js/playerlist.js | 7 +++++++ 2 files changed, 23 insertions(+) diff --git a/html/playerlist.html b/html/playerlist.html index 83730a4..4feacba 100644 --- a/html/playerlist.html +++ b/html/playerlist.html @@ -13,6 +13,8 @@ + + @@ -24,6 +26,20 @@ + + + diff --git a/js/playerlist.js b/js/playerlist.js index f2f8588..390ab88 100644 --- a/js/playerlist.js +++ b/js/playerlist.js @@ -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 ()
ActionsUsername Steamid Voilation
+
+ + +
+
{{line.DisplayName}}