anksel Posted February 21, 2012 Share Posted February 21, 2012 if enabled then engineApplyShaderToWorldTexture ( myShader, "smoke" ) outputChatBox ( "NITRO: Shader activated!",getLocalPlayer() ) function reddd () dxSetShaderValue( myShader, "gNitroColor", 255, 255, 0, 255 ) engineApplyShaderToWorldTexture ( myShader, "smoke" ) setTimer ( redd, 1000, 1 ) end function redd () dxSetShaderValue( myShader, "gNitroColor", 255, 0, 0, 255 ) engineApplyShaderToWorldTexture ( myShader, "smoke" ) setTimer ( greenn, 1000, 1 ) end function greenn () dxSetShaderValue( myShader, "gNitroColor", 0, 250, 0, 255 ) engineApplyShaderToWorldTexture ( myShader, "smoke" ) setTimer ( blauww, 1000, 1 ) end function blauww () dxSetShaderValue( myShader, "gNitroColor", 0, 0, 250, 255 ) engineApplyShaderToWorldTexture ( myShader, "smoke" ) setTimer ( rozee, 1000, 1 ) end function rozee () dxSetShaderValue( myShader, "gNitroColor", 250, 0, 250, 255 ) engineApplyShaderToWorldTexture ( myShader, "smoke" ) setTimer ( reddd, 1000, 1 ) end setTimer ( rozee, 1000, 1 ) enabled = false setcolorativado = true else engineRemoveShaderFromWorldTexture ( myShader, "smoke" ) outputChatBox ( "NITRO: Shader disabled!",getLocalPlayer() ) setcolorativado = false enabled = true end I need fix that problem Else = colors are normal But it continue change anymore..Help me Link to comment
drk Posted February 21, 2012 Share Posted February 21, 2012 local enabled = true local setcolorativado = false function enabled() if enabled then engineApplyShaderToWorldTexture ( myShader, "smoke" ) outputChatBox ( "NITRO: Shader activated!",localPlayer ) dxSetShaderValue(myShader,'gNitroColor',math.random(0,255),math.random(0,255),math.random(0,255),255) setcolorativado = true else engineRemoveShaderFromWorldTexture ( myShader, "smoke" ) outputChatBox ( "NITRO: Shader disabled!",getLocalPlayer() ) setcolorativado = false enabled = false end end setTimer(enabled,900,0) You mean this? Link to comment
anksel Posted February 21, 2012 Author Share Posted February 21, 2012 Nope,it changes colors of nitro,but with your color nitro are only white. Link to comment
drk Posted February 21, 2012 Share Posted February 21, 2012 Can you show the full code? Link to comment
denny199 Posted February 21, 2012 Share Posted February 21, 2012 wow, looks the same like my code. impressive what some client side guys can do i will compile for now my scripts :@ Link to comment
drk Posted February 21, 2012 Share Posted February 21, 2012 wow, looks the same like my code. impressive what some client side guys can do i will compile for now my scripts :@ Mine? Or anksel script? Link to comment
denny199 Posted February 21, 2012 Share Posted February 21, 2012 But yes, here u go local nitro, tec = dxCreateShader ( "nitro.fx" ) function reddd () dxSetShaderValue( nitro, "gNitroColor", 255, 255, 0, 255 ) engineApplyShaderToWorldTexture ( nitro, "smoke" ) setTimer ( redd, 600, 1 ) end setTimer ( reddd, 900, 1 ) function redd () dxSetShaderValue( nitro, "gNitroColor", 255, 0, 0, 255 ) engineApplyShaderToWorldTexture ( nitro, "smoke" ) setTimer ( greenn, 600, 1 ) end function greenn () dxSetShaderValue( nitro, "gNitroColor", 0, 250, 0, 255 ) engineApplyShaderToWorldTexture ( nitro, "smoke" ) setTimer ( blauww, 600, 1 ) end function blauww () dxSetShaderValue( nitro, "gNitroColor", 0, 0, 250, 255 ) engineApplyShaderToWorldTexture ( nitro, "smoke" ) setTimer ( rozee, 600, 1 ) end function rozee () dxSetShaderValue( nitro, "gNitroColor", 250, 0, 250, 255 ) engineApplyShaderToWorldTexture ( nitro, "smoke" ) setTimer ( reddd, 600, 1 ) end setTimer ( rozee, 1000, 1 ) wow, looks the same like my code. impressive what some client side guys can do i will compile for now my scripts :@ Mine? Or anksel script? anksel. ?SEe ^^^^^^ Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now