Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. addEventHandler('onClientGUIClick', root, function () if ( source == GUIEditor.button[1] ) then local sound = playSound("M.MP3") setSoundVolume(sound, 0.5) end end)
  2. I don't even get why you use the element id, show your full code and what are you trying to do.
  3. function createFunc() for i, o in ipairs (markers) do markerDo = createMarker(o[1], -1290.8, 1043.2, "cylinder", 1, 28, 239, 0, 160) addEventHandler("onMarkerHit", markerDo, jobFactory) setElementID(markerDo, "do_"..i) setElementInterior(markerDo, 2) end end addEventHandler("onResourceStart", resourceRoot, createFunc) function jobFactory(hitElement, matchingDimension) for i=1, #markers do if isElementWithinMarker(hitElement, getElementByID("do_"..i)) then outputChatBox('Да') end end end
  4. You need to add the resource to the Admin group in the ACL.
  5. لاحظ هنا عندك فاصلة زايدة بالأخير addEventHandler("onMarkerHit",piljob,pilgui,) ._. و حتى لو شلت الفاصلة بيكون خطأ لان الحدث هذا للسيرفر سايد و انت حاطه بالكلينت
  6. SQL الي تبي تسويه يحتاج خبرة في نظام الحفظ مثل dbConnect dbExec dbQuery dbPoll http://www.w3schools.com/sql/default.asp
  7. TAPL

    شرح

    يغلق
  8. الي تفكر فيه غير ممكن لازم تبرمج المود نفسه كامل على العالم الوهمي
  9. يغلق
  10. TAPL

    Bad Picurte #

    مثال theImage = guiCreateStaticImage(20, 200, 100, 100, "imagename.png", false, gridlistwheel) function click() if source == gridlistwheel then local row = guiGridListGetSelectedItem(gridlistwheel) if row ~= -1 then local imgP = guiGridListGetItemText(gridlistwheel, guiGridListGetSelectedItem(gridlistwheel), 1) if imgP ~= "" then guiStaticImageLoadImage(theImage, imgP..".png") end end end end addEventHandler("onClientGUIClick", root, click) png تأكد ان كل كلمة في القريد لست في لها صورة على نفس الكلمة و بصيغة
  11. TAPL

    [Help] Spawn

    It's working, however you shouldn't have repeated the same code .
  12. TAPL

    [HELP] Please...

    Why you used source? Try with localPlayer?
  13. This very similar to you're code, aren't you same person?, lol. viewtopic.php?f=91&t=75253
  14. That's is what the code above do.
  15. He told you to change your button variable name as it may conflict with the function showChat. if ( source == showChat ) then if(source == showChatButton) then
  16. TAPL

    Data

    Then it does not exists.
  17. Do you have the function destroyBlip defined in your code?
  18. You're welcome.
  19. TAPL

    [Help]

    if (getDistanceBetweenPoints3D(x, y, z, px, py, pz < 250) then Should be: if (getDistanceBetweenPoints3D(x, y, z, px, py, pz) < 250) then
  20. You're welcome.
  21. TAPL

    Data

    Use this and let me know what you see in the chat. for i, player in ipairs(getElementsByType("player")) do outputChatBox(getElementData(player, "Hunters")) end
  22. You can set the velocity to zero, and freeze the vehicle or turn off the engine of the vehicle. setElementVelocity(hitElement, 0, 0, 0) setElementFrozen(hitElement, true) setVehicleEngineState(hitElement, false)
  23. You're welcome.
×
×
  • Create New...