Jump to content

TheLegend-EGY

Members
  • Posts

    23
  • Joined

  • Last visited

Recent Profile Visitors

285 profile views

TheLegend-EGY's Achievements

Civilian

Civilian (7/54)

0

Reputation

  1. اذا كان مود جاهز وتبي تعدل عليه حط الاكواد
  2. واضح ولكن وش هي المكتبه ولازم اسويها
  3. هذا اللي انا مسويه وقت ماتطلع الوحه لكن ماله فايده يعني وقت ما اضغط فيه الازرار مايسوي شي لازم سهم من لوحه ثانيه
  4. ضبط لكن وقت مايطلع سهم بسبب الوحه ما اقدر اسكرها لازم افتح لوحه ثانيه واسكر الوحه الاولى بالسهم حق اللوحه الثانيه يعني السهم حق الوحه الاصليه مايسكر
  5. اي جزء اخذ منه function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing ( ) ) then return false end local sx,sy = guiGetScreenSize() local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end local statButton = { } addEvent ( "onButtonDxClick" , true ) function dxCreateButton ( element,x,y,w,h,text ) if ( not element or type ( element ) ~= "string" ) then return end if ( not statButton[element] ) then statButton[element] = "up" end if ( isMouseInPosition(x,y,w,h) ) then if ( getKeyState ( "mouse1" ) ) then if ( statButton[element] ~= "down" ) then statButton[element] = "down" triggerEvent ( "onButtonDxClick" , localPlayer , element , text ) end else if ( statButton[element] == "down" ) then statButton[element] = "up" end end end dxDrawRectangle ( x , y , w , h , tocolor(0,0,0,200) , false ) dxDrawText ( text or "" , x,y,x+w,y+h,tocolor(255,255,255,255),1,"default-bold","center","center",false,false,false,true) end --- # Example addEventHandler ( "onClientRender" , root , function ( ) dxCreateButton ( "kill" , 300,300,120,30,"Kill Player" ) dxCreateButton ( "warp" , 300,350,120,30,"Teleport Player" ) end ) addEventHandler ( "onButtonDxClick" , localPlayer , function ( Button , Text ) if ( Button == "kill" ) then outputChatBox(Text) elseif ( Button == "warp" ) then setElementPosition ( localPlayer ,0,0,3) end end )
  6. اذا قصدك تعريف screenH , screenW معرفه باللوحة
  7. ما اعرف اسوي جداول ><
  8. ماهو راضي يضبط اذا كنت فاتح اللعبة جرب تسوي الاحداثيات هذي
  9. if ( isMouseInPosition (screenW * 0.2794, screenH * 0.2433, screenW * 0.4412, screenH * 0.5222) ) then هل يضر لو كان بهذا الشكل ؟ يعني الاحداثيات
  10. مانفع المفروض ان الزر هذا ماوس يسار
  11. ماحطيت احداثيات لكن لو فيه ممكن يشتغل ؟
  12. local function onClick ( button, state ) if button == 'left' and state == 'up' then if isMouseInPosition ( screenW * 0, screenH * 0, screenW * 0, screenH * 0 ) then هذا ممكن يكون فيه مشكله ؟
  13. يعطيك العافيه نفع طيب لو كنت ابي اسوي زر في نظام الدي اكس وش افضل طريقة
  14. addEventHandler("onClientRender", root, function() if ( guiGetVisible ( Window ) == true ) then dxDrawImage(screenW * 0.2881, screenH * 0.3156, screenW * 0.2568, screenH * 0.2788, ":3.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(screenW * 0.5575, screenH * 0.2943, screenW * 0.1568, screenH * 0.1788, ":4.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) end
×
×
  • Create New...