Jump to content

Help , Race client


R.y.c.k

Recommended Posts

Hey all I try create "black background" 3d efect

Original "i add font , high etc.."

local screenWidth, screenHeight = guiGetScreenSize() 
dxDrawColorText ('#1e90ffNext map: #ffffff' .. g_NextMap, 2, screenHeight - dxGetFontHeight(1.00, font1)/2, 100, 100, tocolor ( 255, 255, 255, 255 ), 0.48, font1, 0.48, 'left') 
if (g_MapInfo) then 
dxDrawColorText ('#1e90ffMap: #ffffFF' .. g_MapInfo.name, 2, screenHeight - dxGetFontHeight(2.00, font1)/2, 100, 100, tocolor ( 255, 255, 255, 255 ), 0.48, font1, 0.48, 'left') 
else 
dxDrawColorText ('#1e90ffMap: #ffffFFNo map is set yet', 2, screenHeight - dxGetFontHeight(2.00, font1)/2, 100, 100, tocolor ( 255, 255, 255, 255 ), 0.48, font1, 0.48, 'left') 
end 
  
dxDrawColorText ('#1e90ffSpectators: (#FFFFFF' .. #Spectators .. '#1e90ff)', 2,  
screenHeight - dxGetFontHeight(3.00, font1)/2, 100, 100, tocolor ( 255, 255, 255, 255 ), 0.48, font1, 0.48, 'left') 
end 
  

Black background

local screenWidth, screenHeight = guiGetScreenSize() 
dxDrawColorText ('#000000Next map: #000000' .. g_NextMap, 2, screenHeight - dxGetFontHeight(1.20, font1)/2, 100, 100, tocolor ( 0, 255, 255, 255 ), 0.48, font1, 0.48, 'left') 
if (g_MapInfo) then 
dxDrawColorText ('#000000Map: #000000' .. g_MapInfo.name, 2, screenHeight - dxGetFontHeight(2.20, font1)/2, 100, 100, tocolor ( 0, 255, 255, 255 ), 0.48, font1, 0.48, 'left') 
else 
dxDrawColorText ('#000000Map: #000000No map is set yet', 2, screenHeight - dxGetFontHeight(2.20, font1)/2, 100, 100, tocolor ( 0, 0, 0, 255 ), 0.48, font1, 0.48, 'left') 
end 

NOW !!!!! I add spectators to black background and see

code

Black background + spectators

local screenWidth, screenHeight = guiGetScreenSize() 
dxDrawColorText ('#000000Next map: #000000' .. g_NextMap, 2, screenHeight - dxGetFontHeight(1.20, font1)/2, 100, 100, tocolor ( 0, 255, 255, 255 ), 0.48, font1, 0.48, 'left') 
if (g_MapInfo) then 
dxDrawColorText ('#000000Map: #000000' .. g_MapInfo.name, 2, screenHeight - dxGetFontHeight(2.20, font1)/2, 100, 100, tocolor ( 0, 255, 255, 255 ), 0.48, font1, 0.48, 'left') 
else 
dxDrawColorText ('#000000Map: #000000No map is set yet', 2, screenHeight - dxGetFontHeight(2.20, font1)/2, 100, 100, tocolor ( 0, 0, 0, 255 ), 0.48, font1, 0.48, 'left') 
end 
dxDrawColorText ('#000000Spectators: (#000000' .. #Spectators .. '#000000)', 2,  
screenHeight - dxGetFontHeight(3.20, font1)/2, 100, 100, tocolor ( 0, 0, 0, 255 ), 0.48, font1, 0.48, 'left') 
end 
  

And ...

Bvxl0ciEDY.png

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...