mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
DATABASE now also follows correctly the players.
This commit is contained in:
@@ -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 )
|
||||
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user