Dr.Zlh Posted August 8, 2015 Posted August 8, 2015 السلام عليكم كيفكم ي شطار المهم ابي اسوي مود فلشر بالشادور فلات بس مني عارف كيف اسويه على السيارات هذا ملف الشادر // // tex_names.fx // float Time : TIME; // Make everything all flashy! float4 GetColor() { return float4( 1, 1, 0, 1 ); } //----------------------------------------------------------------------------- // Techniques //----------------------------------------------------------------------------- technique tec0 { pass P0 { MaterialAmbient = GetColor(); MaterialDiffuse = GetColor(); MaterialEmissive = GetColor(); MaterialSpecular = GetColor(); AmbientMaterialSource = Material; DiffuseMaterialSource = Material; EmissiveMaterialSource = Material; SpecularMaterialSource = Material; ColorOp[0] = SELECTARG1; ColorArg1[0] = Diffuse; AlphaOp[0] = SELECTARG1; AlphaArg1[0] = Diffuse; Lighting = true; } } اتمنى المساعدة
</Mr.Tn6eL> Posted August 8, 2015 Posted August 8, 2015 dxCreateShader engineApplyShaderToWorldTexture skype : 011101000110111000110110011001010110110000110000001110010011000000111001
Dr.Zlh Posted August 8, 2015 Author Posted August 8, 2015 كيف استعمل هذي engineApplyShaderToWorldTexture
; Mr.T76eM # Posted August 8, 2015 Posted August 8, 2015 shader: The shader which is to be applied -- الشادر الي تبيه textureName: The name of the world texture to apply the shader to. -- texture اسم الـ # اعتزال هذه الفترة | المؤسسة العربية تعود قريباً . # اعتزال هذه الفترة | المؤسسة العربية تعود قريباً . # اعتزال هذه الفترة | المؤسسة العربية تعود قريباً . # اعتزال هذه الفترة | المؤسسة العربية تعود قريباً . # اعتزال هذه الفترة | المؤسسة العربية تعود قريباً . # اعتزال هذه الفترة | المؤسسة العربية تعود قريباً .
Dr.Zlh Posted August 8, 2015 Author Posted August 8, 2015 shader: The shader which is to be applied -- الشادر الي تبيه textureName: The name of the world texture to apply the shader to. -- texture اسم الـ اعرف كيف احطة بس معرف وش احط فيه + كيف اخليه يشتغل وطفى بزر معين + كيف اخليه على نور السياره وتكون السياره اصلا معدله علشان يشتغل
</Mr.Tn6eL> Posted August 9, 2015 Posted August 9, 2015 وش تبي تسوي؟ skype : 011101000110111000110110011001010110110000110000001110010011000000111001
Dr.Zlh Posted August 9, 2015 Author Posted August 9, 2015 وش تبي تسوي؟ مود فليشر وراح يشتغل على فلات معين في تصميم السياره يشتغل بزر
iMr.SFA7 Posted August 9, 2015 Posted August 9, 2015 الي فهمته أنك تبي فلشر للمواتر ? حط ذا الكود في ملف سيرفر وشغله واركب موتر واضغط [ او اكتب باف8 ff vehicles = {} function toggleVehicleLights ( car ) if ( getVehicleOverrideLights ( car ) ~= 2 ) then setVehicleOverrideLights ( car, 2 ) else setVehicleOverrideLights ( car, 1 ) end end function toggleFlashingLights ( thePlayer ) if isPedInVehicle ( thePlayer ) then if getPedOccupiedVehicleSeat ( thePlayer ) == 0 then if vehicles[getPedOccupiedVehicle ( thePlayer )] then killTimer ( vehicles[getPedOccupiedVehicle ( thePlayer )] ) vehicles[getPedOccupiedVehicle( thePlayer )] = nil else vehicles[getPedOccupiedVehicle ( thePlayer )] = setTimer ( toggleVehicleLights, 250, 0, getPedOccupiedVehicle ( thePlayer ) ) end end end end addCommandHandler ( "ff", toggleFlashingLights ) addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _,v in ipairs ( getElementsByType ( "player" ) ) do bindKey ( v, "]", "down", toggleFlashingLights ) end end) addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "]", "down", toggleFlashingLights ) end) "A Year from Now You May Wish You Had Started Today"
Dr.Zlh Posted August 9, 2015 Author Posted August 9, 2015 الي فهمته أنك تبي فلشر للمواتر ?حط ذا الكود في ملف سيرفر وشغله واركب موتر واضغط [ او اكتب باف8 ff vehicles = {} function toggleVehicleLights ( car ) if ( getVehicleOverrideLights ( car ) ~= 2 ) then setVehicleOverrideLights ( car, 2 ) else setVehicleOverrideLights ( car, 1 ) end end function toggleFlashingLights ( thePlayer ) if isPedInVehicle ( thePlayer ) then if getPedOccupiedVehicleSeat ( thePlayer ) == 0 then if vehicles[getPedOccupiedVehicle ( thePlayer )] then killTimer ( vehicles[getPedOccupiedVehicle ( thePlayer )] ) vehicles[getPedOccupiedVehicle( thePlayer )] = nil else vehicles[getPedOccupiedVehicle ( thePlayer )] = setTimer ( toggleVehicleLights, 250, 0, getPedOccupiedVehicle ( thePlayer ) ) end end end end addCommandHandler ( "ff", toggleFlashingLights ) addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _,v in ipairs ( getElementsByType ( "player" ) ) do bindKey ( v, "]", "down", toggleFlashingLights ) end end) addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "]", "down", toggleFlashingLights ) end) اخوي انا قلت ابيه بـ الشادور فلات هذا سهل مره ابي الشادور فلات على الموتر كيف ؟؟؟
iMr.SFA7 Posted August 9, 2015 Posted August 9, 2015 طيب سوي شاودر ع الموتر "onClientGUIClick" dxCreateShader engineApplyShaderToWorldTexture "A Year from Now You May Wish You Had Started Today"
Dr.Zlh Posted August 9, 2015 Author Posted August 9, 2015 engineApplyShaderToWorldTexture وش اكتب في هذا اعرف احطة بس وش احط فيه علشان يشتغل على الموتر
iMr.SFA7 Posted August 9, 2015 Posted August 9, 2015 engineApplyShaderToWorldTexture (shader , "text" ) shader = الشادر text = التكست "A Year from Now You May Wish You Had Started Today"
Dr.Zlh Posted August 9, 2015 Author Posted August 9, 2015 engineApplyShaderToWorldTexture (shader , "text" ) shader = الشادر text = التكست حلووووين هذي نعرفها بس وش نكتب في text = التكست علشان تجي في المواتر ؟؟؟
iMr.SFA7 Posted August 9, 2015 Posted August 9, 2015 أنت تبيه للسيارة حط التكست "vehiclegrunge256" "A Year from Now You May Wish You Had Started Today"
Dr.Zlh Posted August 9, 2015 Author Posted August 9, 2015 أنت تبيه للسيارةحط التكست "vehiclegrunge256" والله عارف اني بالشك بس كيف اعرفه على السياره يعني لمن اصمم السياره احط اوبجكت في السياره بهذا الاسم ولا كيف فهمني ي مدير
iMr.SFA7 Posted August 9, 2015 Posted August 9, 2015 تصمم سيارة ؟ انت قلت تبي شادر ع السيارة شف بعطيك مثال وانت طبق عليه shader = dxCreateShader("shader.fx", 0, 0, false, "vehicle") texture = dxCreateTexture("theme.jpg") dxSetShaderValue(shader, "CarSkin", texture) engineApplyShaderToWorldTexture(shader, "vehiclegrunge256") shader.fx texture CarSkin; technique simple { pass P0 { Texture[0] = CarSkin; } } "A Year from Now You May Wish You Had Started Today"
Simple. Posted August 10, 2015 Posted August 10, 2015 آستخدم هذا المود عشان تعرف اسم التكستر نيم حق الاوبجكت الي تبي تحطه عليها او السياره https://nightly.multitheftauto.com/files/shaders/ ... _names.zip h3x#2020
Dr.Zlh Posted August 12, 2015 Author Posted August 12, 2015 طيب ي اخوان كثير الله خيركم بس باقي م خلصنا اسم التكست vehiclelightson128 بس كيف اخليه م يشتغل إلا لزم تركب السياره واخليه طفى ويشتغل " يومض " ممكن تفيدوني
iMr.SFA7 Posted August 12, 2015 Posted August 12, 2015 طيب ي اخوان كثير الله خيركم بس باقي م خلصنا اسم التكست vehiclelightson128 بس كيف اخليه م يشتغل إلا لزم تركب السياره واخليه طفى ويشتغل " يومض " ممكن تفيدوني حط الشادر بالحدث هذا "onClientVehicleEnter" "A Year from Now You May Wish You Had Started Today"
Dr.Zlh Posted August 12, 2015 Author Posted August 12, 2015 طيب ي اخوان كثير الله خيركم بس باقي م خلصنا اسم التكست vehiclelightson128 بس كيف اخليه م يشتغل إلا لزم تركب السياره واخليه طفى ويشتغل " يومض " ممكن تفيدوني حط الشادر بالحدث هذا "onClientVehicleEnter" سوينا myShader = dxCreateShader( "shader.fx" ) addEventHandler("onClientVehicleEnter", root, function(thePlayer, seat) local theVehicle = source if seat == 0 and thePlayer == localPlayer then engineApplyShaderToWorldTexture( myShader, "vehiclelightson128", theVehicle ) end end ) addEventHandler("onClientVehicleExit", root, function(thePlayer, seat) local theVehicle = source if seat == 0 and thePlayer == localPlayer then engineRemoveShaderFromWorldTexture( myShader, "vehiclelightson128", theVehicle ) end end )
iMr.SFA7 Posted August 12, 2015 Posted August 12, 2015 ليه كررت الفنكشن بس في حدث الخروج من الموتر ؟؟ =\ "A Year from Now You May Wish You Had Started Today"
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