Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. https://wiki.multitheftauto.com/wiki/OnPlayerDamage It should also be noted that canceling this event has no effect. Cancel the client-side event onClientPlayerDamage instead.
  2. TAPL

    dual weapon

    Then why you use this resource if you don't want it
  3. قصدك ستنق الي يجي في لوحة الأدمنية؟
  4. TAPL

    dual weapon

    I didn't get how you want it to work.
  5. أنت تبي تكحلها عميتها حطيت الأند بالأخير الحين صار الأفنت يتكرر على عدد الليبلات في الكود
  6. للسطر ذا end كودك ناقص for i,lal in ipairs(GUIEditor_Label) do
  7. --server side local serials = { {Serial = "السيريال هنا", Output = "الكلام هنا"}, {Serial = "السيريال هنا", Output = "الكلام هنا"}, {Serial = "السيريال هنا", Output = "الكلام هنا"} } addEventHandler("onPlayerJoin", root, function() for i=1, #serials do if serials[i]["Serial"] == getPlayerSerial(source) then outputChatBox(serials[i]["Output"], root, 0, 255, 0, true) break end end end)
  8. https://wiki.multitheftauto.com/wiki/CreateColSphere https://wiki.multitheftauto.com/wiki/OnColShapeHit https://wiki.multitheftauto.com/wiki/OnColShapeLeave
  9. TAPL

    Help x2

    Line 6 function resourceStart() should be function ()
  10. http://bugs.multitheftauto.com/view.php?id=6586 This bug occur with big markers, as i see you're using size "20", because of this the col shape doesn't match the visual.
  11. 1- حط كودك 2- https://forum.multitheftauto.com/viewtopic.php?f=160&t=54010
  12. -- server side addEventHandler("onPlayerJoin", root, function() if getPlayerSerial(source) == "حط السريال هنا" then outputChatBox("الكلام هنا", root, 0, 255, 0, true) elseif getPlayerSerial(source) == "حط السريال هنا" then outputChatBox("الكلام هنا", root, 0, 255, 0, true) end end) --server side local serials = { ["السريال"] = true, ["السريال"] = true } addEventHandler("onPlayerJoin", root, function() if serials[getPlayerSerial(source)] then outputChatBox("الكلام هنا", root, 0, 255, 0, true) end end)
  13. الأثنين خطأ
  14. getVehicleOccupants respawnVehicle
  15. ؟؟؟ ما فهمت ايش تبي تسوي بالضبط
  16. -- Server Side addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, v in ipairs ( getElementsByType ( "player" ) ) do bindKey ( v, "F2", "down", givePermissions ) end end ) addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "F2", "down", givePermissions ) end ) function givePermissions ( source ) local playerAccount = getAccountName ( getPlayerAccount ( source ) ) if playerAccount and not isGuestAccount ( playerAccount ) then if isObjectInACLGroup ( "user." .. playerAccount , aclGetGroup ("Police") ) then triggerClientEvent ( source, "wnd", source ) end end end
  17. ههههههه ياخوي الشغله مهي كوبي بست https://wiki.multitheftauto.com/wiki/Scripting_Introduction
  18. https://wiki.multitheftauto.com/wiki/OnClientGUIClick https://wiki.multitheftauto.com/wiki/SetElementPosition
  19. You have a resource that cancel the event "onResourceStart" you have to take a looks at all of your resources, and remove it.
  20. if Mz + Height >= Pz then ياخي السطر هذا ابيه يخش رأسي ومايبي يخش فيه غلط ؟؟ المفروض ينكتب كذا if Pz <= Mz + Height then مضيع الحبيب؟
  21. The error is Identify itself here: [2013-02-07 12:41:56] MODULE: Unable to find modules/mta_mysql.dll! Nothing more we can help you with it, other than go by yourself and check that you have it in modules/mta_mysql.dll
  22. جرب GuiM = createMarker(x, y, z, "checkpoint", size, 255, 255, 0, 255) Height = 10 -- الأرتفاع الي الماركر يفتح فيه النافذه addEventHandler("onClientMarkerHit", GuiM, function (hitPlayer) if hitPlayer == localPlayer and not isPedInVehicle(hitPlayer) then local _, _, Pz = getElementPosition(hitPlayer) local _, _, Mz = getElementPosition(source) if Mz + Height >= Pz then guiSetVisible(window, true) showCursor(true) guiSetInputEnabled(true) end end end) addEventHandler("onClientMarkerLeave", GuiM, function(leftPlayer) if leftPlayer == localPlayer and not isPedInVehicle(leftPlayer) then guiSetVisible(window, false) showCursor(false) guiSetInputEnabled(false) end end)
  23. كودك وينه؟
  24. TAPL

    طلب

    https://wiki.multitheftauto.com/wiki/OnElementClicked
  25. createMarker getElementType getElementModel killPed Event: "onMarkerHit"
×
×
  • Create New...