anksel Posted February 21, 2012 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
drk Posted February 21, 2012 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?
anksel Posted February 21, 2012 Author Posted February 21, 2012 Nope,it changes colors of nitro,but with your color nitro are only white.
denny199 Posted February 21, 2012 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 :@
drk Posted February 21, 2012 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?
denny199 Posted February 21, 2012 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 ^^^^^^
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