function setNextNil ( dis )
g_NextMap = "Random"
end
addEvent ( "setNextNil", true )
addEventHandler ( "setNextNil", getRootElement(), setNextNil )
function hudSet ()
local screenWidth, screenHeight = guiGetScreenSize()
dxDrawColorText ('Next: ' .. g_NextMap, 2+1, screenHeight - dxGetFontHeight(1, 'bankgothic')/2+1, 100+1, 100+1, tocolor ( 0, 0, 0, 255 ), 0.6, 'bankgothic', 0.6, 'left')
dxDrawColorText ('#FF9900Next: #FFFFFF' .. g_NextMap, 2, screenHeight - dxGetFontHeight(1, 'bankgothic')/2, 100, 100, tocolor ( 255, 255, 255, 255 ), 0.6, 'bankgothic', 0.6, 'left')
if (g_MapInfo) then
dxDrawColorText ('Map: ' .. g_MapInfo.name, 2+1, screenHeight - dxGetFontHeight(2, 'bankgothic')/2+1, 100+1, 100+1, tocolor ( 0, 0, 0, 255 ), 0.6, 'bankgothic', 0.6, 'left')
dxDrawColorText ('#FF9900Map: #FFFFFF' .. g_MapInfo.name, 2, screenHeight - dxGetFontHeight(2, 'bankgothic')/2, 100, 100, tocolor ( 255, 255, 255, 255 ), 0.6, 'bankgothic', 0.6, 'left')
else
dxDrawColorText ('Map: N/A', 2+1, screenHeight - dxGetFontHeight(2, 'bankgothic')/2.1, 100, 100, tocolor ( 0, 0, 0, 255 ), 0.6, 'bankgothic', 0.6, 'left')
dxDrawColorText ('#FF9900Map: #FFFFFFRandom', 2, screenHeight - dxGetFontHeight(2, 'bankgothic')/2+1, 100+1, 100+1, tocolor ( 255, 255, 255, 255 ), 0.6, 'bankgothic', 0.6, 'left')
end
dxDrawColorText ('Spectators: ' .. #Spectators, 2+1, screenHeight - dxGetFontHeight(3, 'bankgothic')/2+1, 100+1, 100+1, tocolor ( 0, 0, 0, 255 ), 0.6, 'bankgothic', 0.6, 'left')
dxDrawColorText ('#FF9900Spectators: #FFFFFF' .. #Spectators, 2, screenHeight - dxGetFontHeight(3, 'bankgothic')/2, 100, 100, tocolor ( 255, 255, 255, 255 ), 0.6, 'bankgothic', 0.6, 'left')
end