Jump to content

DELETE!!


Sex*

Recommended Posts

Ok something:

------------------------------------------ 
-- Shaders 
------------------------------------------ 
  
function ShadersUpdate(Who,Shader,Data) 
    savePlayerData(Who,"Shader"..Shader,Data) 
end 
function ClientStarted ( who ) 
    for i=1,2,3 do 
        local data = loadPlayerData(who,"Shader"..i) 
        if i == 1 then callClientFunction(who,"CarShaderToggle",who,data) 
        elseif i == 2 then callClientFunction(who,"WaterShaderToggle",who,data) 
elseif i == 3 then callClientFunction(who,"NitroShaderToggle",who,data) 
  
        end 
    end 
end 
  

Did i do right that part?

And also....is there a way to that mapinfo wouldnt come to chatbox...not even the name?

Link to comment
  • 2 weeks later...

Ok, because nobody helped me with shader then i started to create lights. But i still want help with shader...because idk how to finish it myself...

Why if the numbers are set to idk what..it doesnt matter, only nitro goes to yellow or white

function CarNitroToggle( Who, data ) 
    if Who ~= localPlayer then return end 
    if data == 1 then 
        guiLabelSetColor( shaders[ 3 ], 0, 255, 0 ) 
        guiCheckBoxSetSelected( shaderCheckBox[ 3 ], true ) 
        if not myNitroShader then 
            myNitroShader, tec = dxCreateShader ( "Shaders/Nitro/nitro.fx" ) 
            engineApplyShaderToWorldTexture ( myNitroShader, "smoke" ) 
            dxSetShaderValue( myNitroShader, "gNitroColor", 255, 50, 0) 
        end 
    else 
        guiLabelSetColor( shaders[ 3 ], 255, 0, 0 ) 
        guiCheckBoxSetSelected( shaderCheckBox[ 3 ], false ) 
        if myNitroShader then 
            destroyElement( myNitroShader ) 
            myNitroShader = nil      
        end 
    end 
end 
  

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