M7MD# Posted June 19, 2015 Share Posted June 19, 2015 سلامُ عليكم عندي مود الــ لوجو ابيه يوم اللاعب يدخل السيارة الوجو يختفي ويوم يخرج يررجع local screenWidth, screenHeight = guiGetScreenSize() img = "logo.png" addEventHandler("onClientRender", root, function() local seconds = getTickCount() / 1000 local R = math.sin(seconds) * 80 dxDrawImage( (screenWidth / 800) * 645, (screenHeight / 520) * 157, (screenWidth / 850) * 150, (screenHeight / 600) * 130, img , R) end ) حاولت اسويه بنفسي ضبط معي فقط يوم يدخل يختفي لكن يوم يخرج يظل مختفي ارجو المساعدة .. Link to comment
M7MD# Posted June 19, 2015 Author Share Posted June 19, 2015 أستخدم الفنشكن ذا صح removeEventHandler("onClientRender",root, Link to comment
M7MD# Posted June 19, 2015 Author Share Posted June 19, 2015 local screenWidth, screenHeight = guiGetScreenSize() img = "logo.png" addEventHandler("onClientRender", root, function logo() local seconds = getTickCount() / 1000 local R = math.sin(seconds) * 80 if (not isPedInVehicle(getLocalPlayer)) then dxDrawImage( (screenWidth / 800) * 645, (screenHeight / 520) * 157, (screenWidth / 850) * 150, (screenHeight / 600) * 130, img , R) else removeEventHandler("onClientRender",root,logo) end end ) كذا ؟ Link to comment
' A F . Posted June 19, 2015 Share Posted June 19, 2015 تفضل local screenWidth, screenHeight = guiGetScreenSize() img = "logo.png" function logo() local seconds = getTickCount() / 1000 local R = math.sin(seconds) * 80 dxDrawImage( (screenWidth / 800) * 645, (screenHeight / 520) * 157, (screenWidth / 850) * 150, (screenHeight / 600) * 130, img , R) end addEventHandler("onClientRender",root,logo) addEventHandler("onClientResourceStart",resourceRoot, function ( ) if ( isPedInVehicle(localPlayer) ) then removeEventHandler("onClientRender",root,logo) end end ) addEventHandler("onClientVehicleEnter",root, function ( ) removeEventHandler("onClientRender",root,logo) end) addEventHandler("onClientVehicleExit",root, function ( ) addEventHandler("onClientRender",root,logo) end) Link to comment
M7MD# Posted June 19, 2015 Author Share Posted June 19, 2015 تفضل local screenWidth, screenHeight = guiGetScreenSize() img = "logo.png" function logo() local seconds = getTickCount() / 1000 local R = math.sin(seconds) * 80 dxDrawImage( (screenWidth / 800) * 645, (screenHeight / 520) * 157, (screenWidth / 850) * 150, (screenHeight / 600) * 130, img , R) end addEventHandler("onClientRender",root,logo) addEventHandler("onClientResourceStart",resourceRoot, function ( ) if ( isPedInVehicle(localPlayer) ) then removeEventHandler("onClientRender",root,logo) end end ) addEventHandler("onClientVehicleEnter",root, function ( ) removeEventHandler("onClientRender",root,logo) end) addEventHandler("onClientVehicleExit",root, function ( ) addEventHandler("onClientRender",root,logo) end) انشهد انك كفو ومبدع بارك الله بكك .. لكن لو انك اعطيتني الفنكشنات احاول واغلط وتصحح الخطأ احسن بالتوفيق وشكراً اخوي بارك الله بكك Link to comment
' A F . Posted June 19, 2015 Share Posted June 19, 2015 ^ حياك الله .. انا شفتك محاول فلت افيدك ع العموم حياك الله بـ اي وقت Link to comment
M7MD# Posted June 19, 2015 Author Share Posted June 19, 2015 لكن في مشكلة بـــ كودك توي الاحظه ان لما اي لاعب يدخل السيارة الــ شعار يختفي من عند الكُل .. وجربتها مع خويي في سيرفر مجاني Link to comment
' A F . Posted June 19, 2015 Share Posted June 19, 2015 local screenWidth, screenHeight = guiGetScreenSize() img = "logo.png" function logo() local seconds = getTickCount() / 1000 local R = math.sin(seconds) * 80 dxDrawImage( (screenWidth / 800) * 645, (screenHeight / 520) * 157, (screenWidth / 850) * 150, (screenHeight / 600) * 130, img , R) end addEventHandler("onClientRender",root,logo) addEventHandler("onClientResourceStart",getRootElement(), function ( ) if ( isPedInVehicle(localPlayer) ) then removeEventHandler("onClientRender",getRootElement(),logo) end end ) addEventHandler("onClientVehicleEnter",getRootElement(), function ( ) removeEventHandler("onClientRender",getRootElement(),logo) end) addEventHandler("onClientVehicleExit",getRootElement(), function ( ) addEventHandler("onClientRender",getRootElement(),logo) end) Link to comment
M7MD# Posted June 19, 2015 Author Share Posted June 19, 2015 local screenWidth, screenHeight = guiGetScreenSize() img = "logo.png" function logo() local seconds = getTickCount() / 1000 local R = math.sin(seconds) * 80 dxDrawImage( (screenWidth / 800) * 645, (screenHeight / 520) * 157, (screenWidth / 850) * 150, (screenHeight / 600) * 130, img , R) end addEventHandler("onClientRender",root,logo) addEventHandler("onClientResourceStart",getRootElement(), function ( ) if ( isPedInVehicle(localPlayer) ) then removeEventHandler("onClientRender",getRootElement(),logo) end end ) addEventHandler("onClientVehicleEnter",getRootElement(), function ( ) removeEventHandler("onClientRender",getRootElement(),logo) end) addEventHandler("onClientVehicleExit",getRootElement(), function ( ) addEventHandler("onClientRender",getRootElement(),logo) end) نَفسْ المُشكلة Link to comment
Simple. Posted June 19, 2015 Share Posted June 19, 2015 local screenWidth, screenHeight = guiGetScreenSize() img = "logo.png" function logo() local seconds = getTickCount() / 1000 local R = math.sin(seconds) * 80 if ( isPedInVehicle(localPlayer) ) then return end dxDrawImage( (screenWidth / 800) * 645, (screenHeight / 520) * 157, (screenWidth / 850) * 150, (screenHeight / 600) * 130, img , R) end addEventHandler("onClientRender",root,logo) Link to comment
M7MD# Posted June 19, 2015 Author Share Posted June 19, 2015 تمّت الإفــــــآددةة .. مشكورين , برو قيمر + كلآسيك , بـآركك الله بكم يــآ شباب .. ان شاء الله اتعلم واصير مُحترف مثلكم 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