Jump to content

Dude Race's Nextmap


MrXz

Recommended Posts

Hi all!

Well, I was looking to do so you can create a dxDrawColorText when a map is not in nextmap,

wanted to know how to do that when you put 'NEXTMAP'

appears below the 'MAP' and the MAP up a bit up or else, it then appears above the 'MAP'

only when i put a nextmap. and after playing, it disappears.

I did this script

  
 g_NextMap = "- Not Set -" 
  
function setNextMap ( mapname ) 
g_NextMap = mapname 
end 
addEvent ( "setNextMap", true ) 
addEventHandler ( "setNextMap", getRootElement(), setNextMap ) 
  
function setNextNil ( dis ) 
    g_NextMap = "- Not Set -" 
end 
addEvent ( "setNextNil", true ) 
addEventHandler ( "setNextNil", getRootElement(), setNextNil ) 
  
function hudSet () 
local screenWidth, screenHeight = guiGetScreenSize() 
if (g_NextMap) then 
dxDrawColorText ('#00A2FFNextmap: #FFFFFF' .. g_NextMap, 2, screenHeight - dxGetFontHeight(1.7, 'default-bold')/2, 100, 100, tocolor ( 255, 255, 255, 255 ), 1, 'default-bold', 1, 'left') 
else 
dxDrawColorText ('#00A2FFNextmap: #FFFFFFNO SET NEXTMAP', 2+1, screenHeight - dxGetFontHeight(0.0, 'default-bold')/2+1, 100+1, 100+1, tocolor ( 255, 255, 255, 255 ), 1, 'default-bold', 1, 'left') 
  

but before that I found this

665C3C12A.png

Please, help D:

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...