iMr.RAy][!][yAN Posted July 4, 2015 Share Posted July 4, 2015 بسم الله الرحمن الرحيم السلآم عليكم ورحمة الله وبركآته عندي طلبين لو سمحتم : الأول محتاج كود يخلي نافذة الدي اكس تنفك أو تظهر من فوق لـ تحت أو حركة معينة تنفتح بيها النافذة : الثآني لمن أضغط على زر يسوي شوت مسج للاعب معين أنا اخترته من القريد ليست .. وشكرآ # Link to comment
' A F . Posted July 4, 2015 Share Posted July 4, 2015 الطلب الاول : interpolateBetween الطلب الثاني : وضح Link to comment
iMr.RAy][!][yAN Posted July 4, 2015 Author Share Posted July 4, 2015 الطلب الاول : interpolateBetween الطلب الثاني : وضح يعطيك العآفية .. الطلب الثآني : عندي نافذة فيها قريد ليست لاعبين اختار لاعب من الليست واضغط مثلا على زر شوت يجي رسالة للاعب يلي اختاره في شاشته Link to comment
' A F . Posted July 4, 2015 Share Posted July 4, 2015 guiGridListGetItemText triggerServerEvent guiGetText triggerClientEvent dxDrawText onClientRender Link to comment
iMr.RAy][!][yAN Posted July 5, 2015 Author Share Posted July 5, 2015 guiGridListGetItemText triggerServerEvent guiGetText triggerClientEvent dxDrawText onClientRender مشكور .. بس ممكن تجي سكايب في كم شي ما فهمته Link to comment
[iMr]-W[i]Fi,.! Posted July 5, 2015 Share Posted July 5, 2015 قلنا الي ما فهمته وحنا بنساعدك ~ Link to comment
iMr.RAy][!][yAN Posted July 5, 2015 Author Share Posted July 5, 2015 قلنا الي ما فهمته وحنا بنساعدك ~ local x, y = guiGetScreenSize() function Open() ancho = 320 alto = 450 CR,CG,CB = 255,0,255 alphaDefaul= 255 teamColor = tocolor (CR,CG,CB,alphaDefaul) btAncho = 320 btAlto = 25 local now = getTickCount() local elapsedTime = now-start local endTime = start + 1500 local duration = endTime-start local progrARs = elapsedTime/duration if progrARs >= 1 then state = true wC = false end x1, y1, z1 = interpolateBetween(0,0,0,ancho,alto,255,progrARs,"OutBounce") x2, y2, z2 = interpolateBetween(0,0,0,btAncho,btAlto,200,progrARs,"OutBounce") posx = (x/2)-(x1/2) posy = (y/2)-(y1/2) dxDrawLine(366 - 1, 144 - 1, 366 - 1, 497, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(831, 144 - 1, 366 - 1, 144 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(366 - 1, 497, 831, 497, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(831, 497, 831, 144 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(366, 144, 465, 353, tocolor(0, 215, 255, 180), false) dxDrawText("Test Panel | لوحة تجريبية", 400 - 1, 274 - 1, 760 - 1, 348 - 1, tocolor(0, 0, 0, 255), 3.00, "default-bold", "left", "top", false, false, false, true, false) dxDrawText("Test Panel | لوحة تجريبية", 400 + 1, 274 - 1, 760 + 1, 348 - 1, tocolor(0, 0, 0, 255), 3.00, "default-bold", "left", "top", false, false, false, true, false) dxDrawText("Test Panel | لوحة تجريبية", 400 - 1, 274 + 1, 760 - 1, 348 + 1, tocolor(0, 0, 0, 255), 3.00, "default-bold", "left", "top", false, false, false, true, false) dxDrawText("Test Panel | لوحة تجريبية", 400 + 1, 274 + 1, 760 + 1, 348 + 1, tocolor(0, 0, 0, 255), 3.00, "default-bold", "left", "top", false, false, false, true, false) dxDrawText("Test Panel | لوحة تجريبية", 400, 274, 760, 348, tocolor(255, 0, 0, 255), 3.00, "default-bold", "left", "top", false, false, false, true, false) end function Close() ancho = 320 alto = 450 btAncho = 320 btAlto = 25 local now2 = getTickCount() local elapsedTime2 = now2 - start2 local endTime2 = start2 + 1500 local duration2 = endTime2 - start2 local progrARs2 = elapsedTime2 / duration2 if progrARs2 >= 1 then state = false wC = false removeEventHandler("onClientRender", root, Close) end local x3, y3, z3 = interpolateBetween(ancho, alto, 0, 0, 0, 0, progrARs2, "OutBounce") local x4, y4, z4 = interpolateBetween(btAncho, btAlto, 0, 0, 0, 0, progrARs2, "OutBounce") posx = (x/2)-(x3/2) posy = (y/2)-(y3/2) dxDrawLine(366 - 1, 144 - 1, 366 - 1, 158, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(383, 144 - 1, 366 - 1, 144 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(366 - 1, 158, 383, 158, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(383, 158, 383, 144 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(366, 144, 17, 14, tocolor(0, 215, 255, 180), false) end function status() if not wC then if state then wC = true start2 = getTickCount() removeEventHandler("onClientRender", root, Open) addEventHandler("onClientRender", root, Close) else wC = true start = getTickCount() addEventHandler("onClientRender", root, Open) end end end bindKey("F2", "down", status) زي ذا الكود اللوحة تعلق معي وما تسوي تأثير .. وش الحل Link to comment
iMr.RAy][!][yAN Posted July 13, 2015 Author Share Posted July 13, 2015 dxDrawAnimWindow .. يعطيك العآفية .. زبطت 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