Jump to content

Hunterix Aiutami :)


Recommended Posts

Ciao.. ho un problema.. dovrei togliere la deathlist dalla race (quella di destra che esce il nome con il tempo passato) ho trovato uno script che esce con i nomi colorati ed è fatto bene.. solo che ora dovrei togliere l'originale perchè esce uno sopra l'altro.. Grazie.

Link to comment
/stop killmessages ._.

Puo darsi :wink:

Cmq se hai un killmessages a parte devi stoppate il killmessages originale.

Non avendo mta a disposizione ora vado ad occhio.

Controlla nel meta.xml del race se c'e 'include resource killmessages' o roba simile, ed elimini la stringa.

Controlla anche nel mtaserver.conf se c'e la stringa giù nelle risorse e toglila.

Link to comment
Allora.. andando nel meta.xml ho tolto la resource killmessages e si è disattivato il messaggio kill di destra quello con il teschio.. ma quello di sinistra con il tempo vicino non ancora è scomparso come faccio?

Prova a fare /stop deathlist non so che resources hai ma dovrebbe andare

Link to comment

Non ti offendere Phrenetiick ma i comandi che hai citato non hanno alcun senso.

/stop deathlist e /stop killmessages :D

------------------------------------------------------------------------------------------------

Shift prima si parlava di killmessages e non di rankinboard.

Killmessages a destra (e abbiamo risolto giusto? )

Rankingboard e quello a sinistra.

Come puoi veder sono due script differenti,se hai una script a parte e vuoi togliere l originale devi fare questo che ti dico.

Purtroppo il rankingboard non puoi ne eliminarlo e ne stopparlo,ti tocca editarlo.

Apri rankinboard_client.lua

questa e l originale : ( è l'ultima funzione sotto)

  
function createShadowedLabelFromSpare(x, y, width, height, text, align) 
  
    if #spareElems < 2 then 
        if not donePrecreate then 
            outputDebug( 'OPTIMIZATION', 'createShadowedLabel' ) 
        end 
            return createShadowedLabel(x, y, width, height, text, align) 
    else 
        local shadow = table.popLast( spareElems ) 
            guiSetSize(shadow, width, height, false) 
            guiSetText(shadow, text) 
            --guiLabelSetColor(shadow, 0, 0, 0) 
            guiSetPosition(shadow, x + 1, y + 1, false) 
        guiSetVisible(shadow, true) 
  
        local label = table.popLast( spareElems ) 
            guiSetSize(label, width, height, false) 
            guiSetText(label, text) 
            --guiLabelSetColor(label, 255, 255, 255) 
            guiSetPosition(label, x, y, false) 
        guiSetVisible(label, true) 
            if align then 
                    guiLabelSetHorizontalAlign(shadow, align) 
                    guiLabelSetHorizontalAlign(label, align) 
        else 
                    guiLabelSetHorizontalAlign(shadow, 'left') 
                    guiLabelSetHorizontalAlign(label, 'left') 
            end 
        return label, shadow 
    end 
end 
  

bene, aggiungici questo --[[ ]]--

ecco come : (in modo da non farla funzionare,non eliminandola)

  
--[[function createShadowedLabelFromSpare(x, y, width, height, text, align) 
  
    if #spareElems < 2 then 
        if not donePrecreate then 
            outputDebug( 'OPTIMIZATION', 'createShadowedLabel' ) 
        end 
            return createShadowedLabel(x, y, width, height, text, align) 
    else 
        local shadow = table.popLast( spareElems ) 
            guiSetSize(shadow, width, height, false) 
            guiSetText(shadow, text) 
            --guiLabelSetColor(shadow, 0, 0, 0) 
            guiSetPosition(shadow, x + 1, y + 1, false) 
        guiSetVisible(shadow, true) 
  
        local label = table.popLast( spareElems ) 
            guiSetSize(label, width, height, false) 
            guiSetText(label, text) 
            --guiLabelSetColor(label, 255, 255, 255) 
            guiSetPosition(label, x, y, false) 
        guiSetVisible(label, true) 
            if align then 
                    guiLabelSetHorizontalAlign(shadow, align) 
                    guiLabelSetHorizontalAlign(label, align) 
        else 
                    guiLabelSetHorizontalAlign(shadow, 'left') 
                    guiLabelSetHorizontalAlign(label, 'left') 
            end 
        return label, shadow 
    end 
end]]-- 
  

Prova.

Link to comment

Grazie Hunterix funziona :) Per fare un altra domanda devo aprire un altro topic? dovrei togliere i millisecondi dal tempo rimanente e fare il carattere più grande :)

Non ti offendere Phrenetiick ma i comandi che hai citato non hanno alcun senso.

/stop deathlist e /stop killmessages :D

lol solitamente a me si risolve semplicemente facendo così per quello gli ho detto di provare asd

Infatti mica sono dei script che fai /stop?

Link to comment

I comandi /stop /start esistono,servono per far partire o stoppare una resource.

Per quanto riguarda il killmessages gli do ragione perché la resource si chiama proprio così :D

Ma /stop deathlist non ha senso :lol:

----------------------------------------------------------------------------------

Tornando al topic non mi è chiaro se vuoi eliminare i milisecondi al timeleft o al timepassed.

In entrambi i casi credo che tu non possa fare molto perché analizzando la funzione ho capito che la script e fatta di milisecondi e basta.

questa: (race_client.lua)

  
function updateTime() 
    local tick = getTickCount() 
    local msPassed = tick - g_StartTick 
    if not isPlayerFinished(g_Me) then 
        g_dxGUI.timepassed:text(msToTimeStr(msPassed)) -- il time passed dx 
    end 
    local timeLeft = g_Duration - msPassed 
    guiSetText(g_GUI.timeleft, msToTimeStr(timeLeft > 0 and timeLeft or 0)) -- il time left gui 
    if g_HurryDuration and g_GUI.hurry == nil and timeLeft <= g_HurryDuration then 
        startHurry() 
    end 
end 
  

Magari quando torno in italia (la settimana prossima,9 ore di aereo che strapalle) posso aiutarti,perché ho sia pc che mta.

Per fare il carattere più grande già ti dissi come fare,con il dxcreatefont per il timepassed e guicreatefont per timefelt.

la grandezza del testo la regoli quando vai a settare il font.

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