DATABASE now also follows correctly the players.

This commit is contained in:
FlightControl
2016-05-27 13:21:39 +02:00
parent 645d074a7d
commit 7efbd60b9e
6 changed files with 157 additions and 212 deletions

View File

@@ -88,6 +88,21 @@ DBRedVehicles
:ForEachUnit( function( MooseUnit )
DBRedVehicles:T( MooseUnit:GetName() )
end )
local function FlushPlayers()
_DATABASE:E( "FlushPlayers" )
_DATABASE
:ForEachPlayerAlive( function( Player )
_DATABASE:E( Player )
MESSAGE:New( Player, "Test", 5, "Player Test" ):ToAll()
return true
end )
return true
end
_DATABASE:E( "Schedule" )
local PlayerShow = SCHEDULER:New( nil, FlushPlayers, {}, 1, 10 )