Jump to content

i S6O

Members
  • Posts

    437
  • Joined

  • Last visited

Everything posted by i S6O

  1. toggleControl ( "aim_weapon", false ) -- تقفل تحريك السلاح toggleControl ( "sprint", false ) -- تقفل الركض toggleControl ( "fire", false ) -- تقفل الطلق بالسلاح toggleControl ( "next_weapon", false ) -- تقفل تغير السلاح toggleControl ( "previous_weapon", false ) -- نفس الي فوق toggleControl ( "jump", false ) -- تقفل النقز unbindKey -- تحذف زر نافذه السيارات -- باقي التايمر ماعرف له -- ادري تعليق ماله فايده بس يزيد لك افكار عشان يظبط السكربت اكثر
  2. Example for 3d_dx_Texts dxDraw3DText = exports["3d_dx_texts"]:dxDraw3DText("Text",x,y,z,scale,Font,r,b,g,maxDistance)
  3. not test ! --Server addEventHandler ( 'onPlayerWasted', root, function ( ) if getPedWeapon ( source, 38 ) then giveWeapon ( source, 38, 10000 ) else killPed ( source, source ) end end )
  4. لماذا تطقطق علينا ؟ شوف وش انت كاتب فوق عموماً استخدم edit : function OpenWindow ( ) guiSetVisible ( اسم النافذه, not guiGetVisible ( اسم النافذه ) ) showCursor ( guiGetVisible ( اسم النافذه ) ) end bindKey ( 'F4', 'down', OpenWindow )
  5. (= هو يشوف الي يناسبه ويرد لنا خبر مافيه مشكلة تشابه اكواد لكن المشكلة عدم فهم الاكواد
  6. لم تضع لوب للاعبين إتوقع يحتاج ذلك الكود * واذا لم يحتاج كودي نفس طريقتك
  7. https://www.youtube.com/watch?v=STivHfoIsn4شف المقطع كامل تلقا حل للمشكلة حقتك
  8. Main_Page : ي فتى تعلم الاسياسيات بالبرمجه بالرابط guieditor . ثم سو ملف بـ سكربت ثم جيب الفنكشات النوعين كلنت وسيرفر Client_Scripting_Functions : فنكشات الكلنت هنا Server_Scripting_Functions : فنكشات السيرفر هنا Client_Scripting_Events : احداث الكلنت Server_Scripting_Events : احداث السيرفر lua ولا تحطم نفسك وتقول فاشل بالـ عند طرحك الاكواد lua استخدم
  9. يعني اكوادك تصصير alpha حقها 100 انا 0 alpha حقها
  10. Tested work 100% جربته شغال local opened = false local sx,sy = guiGetScreenSize() GUI = { button = {}, } GUI.button[1] = guiCreateButton(231, 240, 143, 65, "onsound", false) GUI.button[2] = guiCreateButton(390, 241, 143, 65, "offsound", false) guiSetVisible ( GUI.button[1], false ) guiSetVisible ( GUI.button[2], false ) guiSetAlpha( GUI.button[1],0.00 ) guiSetAlpha( GUI.button[2],0.00 ) function Dx() dxDrawRectangle(sx*0.3413,sy*0.3550,sx*0.3137,sy*0.2667) dxDrawLine(222 - 1, 164 - 1, 222 - 1, 376, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 164 - 1, 222 - 1, 164 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(222 - 1, 376, 545, 376, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 376, 545, 164 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(222, 164, 323, 212, tocolor(10, 244, 231, 171), false) dxDrawLine(232 - 1, 240 - 1, 232 - 1, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(373, 240 - 1, 232 - 1, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(232 - 1, 306, 373, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(373, 306, 373, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(232, 240, 141, 66, tocolor(10, 244, 231, 171), false) dxDrawLine(391 - 1, 240 - 1, 391 - 1, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(532, 240 - 1, 391 - 1, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(391 - 1, 306, 532, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(532, 306, 532, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(391, 240, 141, 66, tocolor(10, 244, 231, 171), false) dxDrawText("αυ∂ισ ρℓαувα¢к", 230, 239, 373, 305, tocolor(120, 11, 242, 171), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Extinguish sound", 390, 239, 531, 307, tocolor(247, 39, 5, 171), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawLine(220, 207, 543, 208, tocolor(255, 255, 255, 255), 1, false) dxDrawText("To play the sound Put option on αυ∂ισ ρℓαувα¢к", 222, 164, 546, 185, tocolor(144, 233, 18, 171), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("To reduce the sound Put Option Extinguish sound", 223, 185, 547, 206, tocolor(247, 39, 5, 171), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawLine(223 - 1, 339 - 1, 223 - 1, 375, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 339 - 1, 223 - 1, 339 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(223 - 1, 375, 545, 375, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 375, 545, 339 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(223, 339, 322, 36, tocolor(144, 233, 18, 171), false) dxDrawText("Mod Sound By ~ Mr.Hassan", 222, 337, 544, 375, tocolor(19, 14, 236, 171), 1.00, "pricedown", "left", "top", false, false, false, false, false) end addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUI.button[1] then setSoundPaused(theSound, true) elseif source == GUI.button[2] then setSoundPaused(theSound, false) end end ) bindKey ( "F4", "down", function () if opened then opened = false removeEventHandler ( "onClientRender",root,Dx ) showCursor ( false ) guiSetVisible( GUI.button[1], false ) guiSetVisible( GUI.button[2], false ) else opened = true addEventHandler ( "onClientRender",root,Dx ) showCursor ( true ) guiSetVisible( GUI.button[1], true ) guiSetVisible( GUI.button[2], true ) end end )
  11. اطرح كودك كامل + الميتا نشوف الاخطاء
  12. وش يقولك الديبوق سكربت
  13. طبق على فنكشات اخوي تنطيل يمكن تفيدكك
  14. Not Tested I think work 100%. local opened = false local sx,sy = guiGetScreenSize() GUI = { button = {}, } GUI.button[1] = guiCreateButton(231, 240, 143, 65, "onsound", false) GUI.button[2] = guiCreateButton(390, 241, 143, 65, "offsound", false) function Dx() dxDrawRectangle(sx*0.3413,sy*0.3550,sx*0.3137,sy*0.2667) dxDrawLine(222 - 1, 164 - 1, 222 - 1, 376, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 164 - 1, 222 - 1, 164 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(222 - 1, 376, 545, 376, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 376, 545, 164 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(222, 164, 323, 212, tocolor(10, 244, 231, 171), false) dxDrawLine(232 - 1, 240 - 1, 232 - 1, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(373, 240 - 1, 232 - 1, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(232 - 1, 306, 373, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(373, 306, 373, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(232, 240, 141, 66, tocolor(10, 244, 231, 171), false) dxDrawLine(391 - 1, 240 - 1, 391 - 1, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(532, 240 - 1, 391 - 1, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(391 - 1, 306, 532, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(532, 306, 532, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(391, 240, 141, 66, tocolor(10, 244, 231, 171), false) dxDrawText("αυ∂ισ ρℓαувα¢к", 230, 239, 373, 305, tocolor(120, 11, 242, 171), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Extinguish sound", 390, 239, 531, 307, tocolor(247, 39, 5, 171), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawLine(220, 207, 543, 208, tocolor(255, 255, 255, 255), 1, false) dxDrawText("To play the sound Put option on αυ∂ισ ρℓαувα¢к", 222, 164, 546, 185, tocolor(144, 233, 18, 171), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("To reduce the sound Put Option Extinguish sound", 223, 185, 547, 206, tocolor(247, 39, 5, 171), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawLine(223 - 1, 339 - 1, 223 - 1, 375, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 339 - 1, 223 - 1, 339 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(223 - 1, 375, 545, 375, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 375, 545, 339 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(223, 339, 322, 36, tocolor(144, 233, 18, 171), false) dxDrawText("Mod Sound By ~ Mr.Hassan", 222, 337, 544, 375, tocolor(19, 14, 236, 171), 1.00, "pricedown", "left", "top", false, false, false, false, false) end addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUI.button[1] then setSoundPaused(theSound, true) elseif source == GUI.button[2] then setSoundPaused(theSound, false) end end ) bindKey ( "F4", "down", function () if opened then opened = false removeEventHandler ( "onClientRender",root,Dx ) showCursor ( false ) guiSetVisible( GUI.button[1], false ) guiSetVisible( GUI.button[2], false ) else opened = true addEventHandler ( "onClientRender",root,Dx ) showCursor ( true ) guiSetVisible( GUI.buttton[1], true ) guiSetVisible( GUI.buttton[2], true ) end end )
  15. مايقصد تختفي !! اتوقع مايمديك تفتحه لككل الاعبين لن النافذه كلنت بس والكلنت وهمي بس للاعب ** جرب ذذ Server addCommandHandler ( 'open', root function () local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then triggerClientEvent( 'OpenWindow0', source ) end end ) --OR bindKey ( 'F2', root function () local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then triggerClientEvent( 'OpenWindow1', source ) end end ) Client.. --CLient window = guiCreateWindow ( ....... ) function openC ( ) guiSetVisible( window, true ) showCursor ( window,true ) end addEvent ( 'OpenWindow0',true ) addEventHandler ( 'OpenWindow0', root, openC ) --OR function openBind ( ) guiSetVisible ( window, not guiGetVisible( window ) ) showCursor ( guiGetVisible ( window ) ) end addEvent ( 'OpenWindow1',true ) addEventHandler ( 'OpenWindow1', root, openBind )
  16. ليش عليك فيه شيئ صعب بس مو انت نايك ؟ يب انا هو و هو انا ^..- و ترى الموضوع سهل جدا بس انتم تحبون الهواش ههههههههههههههههههههه صدق الموضوع سهل * بس مدري شسالفه حنا كذا
  17. Tested Work 100% جربته شغال 100 ميه بالميه الكود سيرفر بس ListCol = { -- X, Y, W, H [1] = { -404.13677978516, 1761.6762695313, 50, 10 } } ListColorCol = { -- X, Y, W, H [1] = { -404.13677978516, 1761.6762695313, 50, 10 } } for i, v in ipairs ( ListColorCol ) do createRadarArea( v[1], v[2], v[3], v[4] ) end function FunctionTest ( plr ) local accName = getAccountName ( getPlayerAccount ( plr ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then toggleControl ( plr, "fire", true ) toggleControl ( plr, "aim_weapon", true ) toggleControl ( plr, "vehicle_fire", true ) else killPed ( plr,plr ) if getElementType ( plr ) == "player" then local nameOfplr = getPlayerName ( plr ) outputChatBox ( nameOfplr.." cant entered the zone from Console", root, 255, 255, 255, true ) end end end function LeaveCol ( plr ) toggleControl ( plr, "fire", false ) toggleControl ( plr, "aim_weapon", false ) toggleControl ( plr, "vehicle_fire", false ) end for i, v in ipairs ( ListCol ) do local Col = createColRectangle ( v[1], v[2], v[3], v[4] ) addEventHandler ( 'onColShapeHit', Col, FunctionTest ) addEventHandler ( 'onColShapeLeave', Col, LeaveCol ) end
  18. بكيفك المهم , اللهم اني صائم
×
×
  • Create New...