1
0

Added the new core as a subtree.

This commit is contained in:
Alexander Harkness
2013-07-27 16:16:04 +01:00
parent aa64450421
commit 0623a4f9be
40 changed files with 3530 additions and 0 deletions

14
Core/playerlist.lua Normal file
View File

@@ -0,0 +1,14 @@
function HandlePlayerListCommand( Split, Player )
local PlayerTable = {}
local AppendToTable = function( Player )
table.insert(PlayerTable, Player:GetName() )
end
Player:GetWorld():ForEachPlayer( AppendToTable )
local Message = cChatColor.Green .. "Connected players: (".. cChatColor.White.. #PlayerTable .. cChatColor.Green .. ")"
Player:SendMessage( Message )
Player:SendMessage( table.concat(PlayerTable, " ") )
return true
end