Jump to content

[Race] Nextmap Problem


zXe

Recommended Posts

Hi, I have a problem with nextmap of gamemode Race.

I did this and then when i select a nextmap, does not appear the nextmap below the map.

which would be my mistake =/

--- race_client.lua [All]

nextmapdisplay = dxText:create('#ff9900Next Map: #ffffffnot set now...', 2, screenHeight - fontX/2, false, 'default-bold', fonts*2, 'left') 

     
        g_dxGUI.nextmapdisplay:type('shadow', 1, 0, 0, 0, 175) 
        g_dxGUI.nextmapdisplay:colorCoded(true) 

function resetposs() 
    g_dxGUI.nextmapdisplay:visible(false) 
    g_dxGUI.mapdisplay:position(2, sH - fontX/2, false) 
    fps:position(2, sH-fontX*2.5, false) 
    spectators:position(2, sH-fontX*1.5, false) 
end 
addEvent("resetposs", true) 
addEventHandler("resetposs", getRootElement(), resetposs) 

function nextMapSet(mapname) 
        g_dxGUI.mapdisplay:position(2, sH - fontX*1.5, false) 
        fps:position(2, sH-fontX*3.5, false) 
        spectators:position(2, sH-fontX*2.5, false) 
        g_dxGUI.nextmapdisplay:visible(true) 
        g_dxGUI.nextmapdisplay:text("#ff9900Next Map: #ffffff" ..mapname) 
end 
addEvent("onNextMap", true) 
addEventHandler("onNextMap", getRootElement(), nextMapSet) 

Edited by Guest
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...