Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. لا تفتح موضوع جديد لنفس الطلب و الكود تم دمج الموضوعين
  2. --COPY ALL OF THIS BUT CHANGE, radar1, zone1, enterArea1, warp1, displayTimer1, (And sometimes the "function.addAccount")-- radar1 = createRadarArea(84, 1774,320,370,0,255,0, 100) setElementData(radar1,"zombieProof",true) Zone1 = createColRectangle (84, 1774,320,370) addEventHandler("onColShapeHit", Zone1, function(h) if not isElement(h) then return end if getElementData(h,"zombie") then killPed(h) end --These zones are also zombie proof end) function enterArea1(thePlayer) local posX, posY = getElementPosition(thePlayer) local inArea = isInsideRadarArea(radar1, posX, posY) if (inArea) then if hasObjectPermissionTo(thePlayer, "function.addAccount", false) then --Specify who can enter the zone --primaryWeaponControl = isControlEnabled ( thePlayer, "fire" ) --if ( primaryWeaponControl == true ) then toggleControl ( thePlayer, "fire", not isControlEnabled ( thePlayer, "fire" ) ) -- change to true/false to allow/disallow shooting. outputChatBox("***Safe Zone***", thePlayer, 0, 255, 0, true) --end else triggerClientEvent(thePlayer, "displayTimer1", thePlayer) end end end addEventHandler("onColShapeHit", Zone1, enterArea1)
  3. ينقل إلى قسم البرمجة
  4. result table will looks like: result = { [1] = { ["columnName"] = value, ["columnName"] = value, ["columnName"] = value }, [2] = { ["columnName"] = value, ["columnName"] = value, ["columnName"] = value }, [3] = { ["columnName"] = value, ["columnName"] = value, ["columnName"] = value } } So defiantly result[1] won't be JSON string ( line 8 ). Also you've used UPDATE for column 'data' but your sql table doesn't have column with such name.
  5. التكتيك حسب علمي مشفر ب التشفير القديم
  6. سوي فنكشن بكل مود لفتح نافذة المود و سوي للفنكشن اكسبورت call ممكن تستخدم طرق ثانية مثل تريقر او كومند مع استخدام الفنكشن ذا executeCommandHandler
  7. theTable = { "Hello1", "Hello2", "Hello3", "Hello4", "Hello5", "Hello6", "Hello7", "Hello8", "Hello9", "Hello10" } for i, value in ipairs(theTable) do outputChatBox(i.." ::: "..value) end تشوف المثال هذا رح يكتب كل الكلام بالجدول في الشات value انا عرفت القيمة الي باللوب بأسم ،outputChatBox بمعنى آخر راح يمر على كل صف بالجدول و يكرر الكود الي داخل اللوب الي هو رح يتغير إلى قيمة الصف value داخل اللوب بكل مره يتغير الصف الي اللوب حالياً فيه، المتغير رح يكون رقم الصف i و المتغير تكرر 10 مرات بينما بالمثال الي فوق مره واحده فقط outputChatBox ذا الكود نفس المثال الي فوق لكن بدون لوب و تشوف الكود outputChatBox("1 ::: Hello1") outputChatBox("2 ::: Hello2") outputChatBox("3 ::: Hello3") outputChatBox("4 ::: Hello4") outputChatBox("5 ::: Hello5") outputChatBox("6 ::: Hello6") outputChatBox("7 ::: Hello7") outputChatBox("8 ::: Hello8") outputChatBox("9 ::: Hello9") outputChatBox("10 ::: Hello10")
  8. من مسؤوليتك الأحتفاظ بالملف غير المشفر و عمل نسخ اختياطية محد هنا راح يساعدك بفك تشفير اي شي انت او مو انت الي مسويه ذا ما يهم لكن لا تتوقع الكثير ccw ممكن تحاول تكلم
  9. https://forum.multitheftauto.com/viewtopic.php?f=160&t=93713 بدأ الموضوع بالسطرين ذول local myMarker = createMarker( 2485.64136, -1666.60461 ,12.5, 'cylinder', 2.0, 255, 0, 0, 150) -- create myMarker local hillRadar = createRadarArea ( 2485.64136, -1666.60461, 111, 440, 0, 255, 0, 175 ) و خرج من الموضوع و معه الكود ذا local TeamName = "Ballas" local myMarker = createMarker( 2485.64136, -1666.60461 ,12.5, "cylinder", 2.0, 255, 0, 0, 150 ) local hillRadar = createRadarArea( 2485.64136, -1666.60461, 111, 440, 0, 255, 0, 175 ) addEventHandler( "onMarkerHit", resourceRoot, function( hitElement ) if ( source == myMarker ) and ( getElementType( hitElement ) == "player" ) then local PlayerTeam = getPlayerTeam( hitElement ) if ( PlayerTeam ) and ( getTeamName( PlayerTeam ) == TeamName ) then if ( not isTimer( TurfTimer ) ) then function Turf( R, G, B ) local Team = getTeamFromName( TeamName ) if ( not Team ) then return end setRadarAreaColor( hillRadar, R, G, B, 255 ) local Money, Boolean = math.random( 500, 5000 ) for _, Player in ipairs( getPlayersInTeam( Team ) ) do if ( isElementWithinMarker( Player, myMarker ) and Boolean ~= true ) then Boolean = true end outputChatBox( "The Rader Color Has Been Changed !", Player, 0, 255, 0, true ) givePlayerMoney( Player, Money ) end if ( Boolean ) then TurfTimer = setTimer( Turf, 180000, 1, getTeamColor( PlayerTeam ) ) end end TurfTimer = setTimer( Turf, 180000, 1, getTeamColor( PlayerTeam ) ) end end end end )
  10. @Me[Z]oO إذا ما تعرف تبرمج ولا تعرف الحل مو مجبور ترد على الموضوع الحل اضافة شرط بالكود الي يلغي الدمج onClientPlayerDamage - cancelEvent ممكن تضيف المنت داتا لما لاعب يدخل الماركر و بالكود الي يلغي الدمج تضيف تحقق للألمنت داتا ممكن تستخدم كول شيب بعد
  11. TAPL

    طلب

    للمرة الثاتية و بالنسبة لـ شكواك عن عدد المشاركات بالموضوع، كان من الأفضل لك اتباع قوانين المنتدى
  12. You can either learn and make it yourself or pay someone to make it for you as you want it. You can also wait for someone to post a ready free code in this topic which may not happen anyway.
  13. TAPL

    طلب

    قصدك تبي احد يبرمج لك الكود و انت تتفرج؟
  14. TAPL

    طلب

    ايش نوع المساعدة الي تحتاجها؟
  15. TAPL

    طلب

    لا تفتح موضوع جديد لنفس الكود تم دمج الموضوعين
  16. Run --> dxdiag --> display لا تتوقع كرت انتل المدمج يشغل لك العاب بدون لاق + جرافيكس مخيس
  17. TAPL

    ?

    Event: 'onVehicleStartEnter' getVehicleController getPlayerTeam cancelEvent Event: 'onClientRender' getTeamFromName getPlayersInTeam getElementPosition getDistanceBetweenPoints3D dxDrawText
  18. Clearly you didn't put the code on the correct side.
  19. TAPL

    TCAdmin Experts

    Have you tried to contact TCAdmin support?
  20. TAPL

    ?

    غير مكان السطر الأول و الثاني بحيث السطر الثاني تحطه قبل الأول يفترض عندك خطأ واضح بالدي بق
  21. addEventHandler ( "onClientGUIClick", guiRoot, function ( ) if ( source == login ) then local user = guiGetText(user) local pass = guiGetText(pass) local user1 = guiGetText(user1) local pass1 = guiGetText(pass1) if user ~= "" and pass ~= "" then if guiCheckBoxGetSelected(remember) then triggerServerEvent("onLogin",localPlayer,user,pass) else triggerServerEvent("onLogin",localPlayer,user,pass) end else outputChatBox("* You Must Write Username Or Password",255,0,0) end elseif ( source == reg ) then local user = guiGetText(user) local pass = guiGetText(pass) local user1 = guiGetText(user1) local pass1 = guiGetText(pass1) if user1 ~= "" and pass1 ~= "" then triggerServerEvent("onReg",localPlayer,user1,pass1) else outputChatBox("* You Must Write Username Or Password",255,0,0) end elseif( source == chechbox ) then if guiCheckBoxGetSelected ( source ) then if ( isElement ( IntroSong ) ) then destroyElement ( IntroSong ) outputChatBox ( "Sound Played !", 255, 255, 0, true ) end else IntroSong = playSound ("files/Intro.mp3") outputChatBox ( "Sound Stopped !", 255, 255, 0, true ) end end end)
  22. TAPL

    [Request]

    طرحت الكود المسروق قبل 10 ساعة و 11 دقيقة و تم تنبيهك بأنه مسروق و ذي المرة الثانية الي تطرح الكود مع علمك انه مسروق يغلق
  23. !!MySQL عشان شات يستخدم الفنكشن ذا + موجود الكود بمثال الويكي https://wiki.multitheftauto.com/wiki/CallRemote
×
×
  • Create New...