function HandleRequest_PlayerList( Request ) local World = cRoot:Get():GetDefaultWorld() local Content = "" if( Request.Params["playerlist-kick"] ~= nil ) then local KickPlayerName = Request.Params["playerlist-kick"] local FoundPlayerCallback = function( Player ) if( Player:GetName() == KickPlayerName ) then Player:GetClientHandle():Kick("You were kicked from the game!") Content = Content .. "
" .. KickPlayerName .. " has been kicked from the game!
" end end if( World:DoWithPlayer( KickPlayerName, FoundPlayerCallback ) == false ) then Content = Content .. "Could not find player " .. KickPlayerName .. " !
" end end Content = Content .. "Connected Players: " .. World:GetNumPlayers() .. "
" Content = Content .. "" .. PlayerNum .. ". | " Content = Content .. "" .. Player:GetName() .. " | " Content = Content .. "Kick | " Content = Content .. "
None |