function HandleRequest_PlayerList( Request ) local World = cRoot:Get():GetWorld() local Content = "" if( Request.Params:get("playerlist-kick") ~= "" ) then local KickPlayerName = Request.Params:get("playerlist-kick") local Player = World:GetPlayer( KickPlayerName ) if( Player == nil ) then Content = Content .. "

Could not find player " .. KickPlayerName .. " !

" elseif( Player:GetName() == KickPlayerName ) then Player:GetClientHandle():Kick("You were kicked from the game!") Content = Content .. "

" .. KickPlayerName .. " has been kicked from the game!

" end end Content = Content .. "

Connected Players: " .. World:GetNumPlayers() .. "

" Content = Content .. "" local PlayerList = World:GetAllPlayers() if( #PlayerList > 0 ) then for i, Player in ipairs( PlayerList ) do Content = Content .. "" Content = Content .. "" Content = Content .. "" Content = Content .. "" Content = Content .. "" end else Content = Content .. "" end Content = Content .. "
" .. i .. "." .. Player:GetName() .. "Kick
None
" Content = Content .. "
" return Content end