Jump to content

Putin ajutor in fiser.tx!


Madalin

Recommended Posts

Aaa :)) si unde il pot gasi?

Sper sa fi meritat timpul pierdut :cry:

Video :

Acest script este facut din mai multe poze. In folderul "IMG" ai sa gasesti 24 de poze ele sunt facute ca un filmulet. Daca stii Photoshop este foarte bine.

ID-ul obiectului este : 7910

Il cauti in mta map editor. si il pui unde vrei tu.

Link pentru download :

http://www.mediafire.com/download/6b8yt8cstg4ce32/arrowsigns.rar

Link to comment
Nu ai inteles ce am vrut sa zic, e bun ce mi-ai dat dar vreau sa fac si eu sa nu pun pe acelasi id de panou , vreau pe alt panou sa fac alte poze ..etc

Mai creezi un script la fel

  
local shader 
signTex = { } 
signLastTick = getTickCount ( ) 
signId = 1 
  
  
addEventHandler( "onClientResourceStart", resourceRoot, 
    function() 
        shader, tec = dxCreateShader ( "texreplace.fx" ) 
        if not shader then 
            outputChatBox( "Could not create shader. Please use debugscript 3" ) 
        else 
            engineApplyShaderToWorldTexture ( shader, "prolaps02" ) 
            if not loadsignTextures ( ) then 
                outputChatBox ( "Loading sign textures failed") 
                destroyElement ( shader ) 
                return 
            end 
            dxSetShaderValue ( shader, "gTexture", signTex[1] ) 
            addEventHandler ( "onClientHUDRender", getRootElement (), renderScreen ) 
        end 
    end 
) 
  
  
  
function loadsignTextures ( ) 
    -- Gotta load 'em all! 
    for i = 0, 24 do 
        local tex = dxCreateTexture ( "location"..i..".png" ) 
        if not tex then 
            unloadsignTextures ( ) 
            return false 
        end 
        table.insert ( signTex, tex ) 
    end 
     
    return true 
end 
  
function unloadsignTextures ( ) 
    for index, tex in ipairs ( signTex ) do 
        destroyElement ( tex ) 
    end 
end 
  
function renderScreen ( ) 
    if getTickCount ( ) - signLastTick < 200 then 
        return 
    end 
    signId = signId + 1 
    if signId > #signTex then 
        signId = signId - #signTex 
    end 
    dxSetShaderValue ( shader, "gTexture", signTex [ signId ] ) 
    signLastTick = getTickCount ( ) 
end 
  

Urmatoru ID : 7911

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