Statistics: Posted by Fearghal — 30 Jan 2018, 07:43
if IsColorFree(data.Color) then
-- Color is available, let everyone else know
gameInfo.PlayerOptions[data.Slot].PlayerColor = data.Color
lobbyComm:BroadcastData( { Type = 'SetColor', Color = data.Color, Slot = data.Slot } )
UpdateGame()
else
-- Sorry, it's not free. Force the player back to the color we have for him.
lobbyComm:SendData( data.SenderID, { Type = 'SetColor', Color = gameInfo.PlayerOptions[data.Slot].PlayerColor, Slot = data.Slot } )
end
Statistics: Posted by Uveso — 28 Jan 2018, 14:35
Statistics: Posted by Fearghal — 21 Jan 2018, 21:58
Statistics: Posted by Fearghal — 21 Jan 2018, 04:31