Jump to content

RaceScript Help


MrXz

Recommended Posts

Hi All :)

I could help with something please.

is there any way for the script out in bold-type?

    dxDrawColorText ('#00A2FFMap: #FFFFFF' .. g_MapInfo.name, 2, screenHeight - dxGetFontHeight(1.1, 'bankgothic')/2, 100, 100, tocolor ( 255, 255, 255, 255 ), 0.3, 'bankgothic', 0.6, 'left') 

and auto-set map, to automatically exit the nextmaps

racevoting_server:

line 525

addCommandHandler('nextmap', 
    function( player, command, ... ) 
        local query = #{...}>0 and table.concat({...},' ') or nil 
        if not query then 
            if g_ForcedNextMap then 
                outputRace( 'Next map is ' .. getMapName( g_ForcedNextMap ), player ) 
            else 
                outputRace( 'Next map is not set', player ) 
            end 
            return 
        end 
        if not _TESTING and not isPlayerInACLGroup(player, g_GameOptions.admingroup) then 
            return 
        end 
        local map, errormsg = findMap( query ) 
        if not map then 
            outputRace( errormsg, player ) 
            return 
        end 
        if g_ForcedNextMap == map then 
            outputRace( 'Next map is already set to ' .. getMapName( g_ForcedNextMap ), player ) 
            return 
        end 
        g_ForcedNextMap = map 
        outputChatBox('*#FF9900Nextmap: #FF0000Next map set to#FFFFFF ' .. getMapName( g_ForcedNextMap ) .. ' #FF9900by#FFFFFF ' .. _getPlayerName(player), getRootElement(), 255, 255, 255, true) 
        triggerClientEvent("setNextMap", getRootElement(), getMapName(g_ForcedNextMap)) 
    end 
) 

End of File:

addEvent("onMapStarting",true) 
addEventHandler("onMapStarting",getRootElement(), 
function() 
triggerClientEvent("setNextNil", getRootElement()) 
end) 
  

Please Help !

Link to comment

Just change: "bankgothic" to: "default-bold"

dxDrawColorText ('#00A2FFMap: #FFFFFF' .. g_MapInfo.name, 2, screenHeight - dxGetFontHeight(1.1, 'default-bold')/2, 100, 100, tocolor ( 255, 255, 255, 255 ), 0.3, 'default-bold', 0.6, 'left') 

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