Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. TAPL

    scoreboard

    You will need to use SQL function, but if you want ready one you can use Gang System by castillo. https://community.multitheftauto.com/index.php?p=resources&s=details&id=1514
  2. https://community.multitheftauto.com/index.php?p=resources&s=details&id=292
  3. mtaserver.conf في ملف في آخر الملف تلقى زي كذا هذا لتشغيل لوحة الأدمنية مع بداية تشغيل السيرفر "admin" startup="1" protected="0"/> حط تحته "اسم المود الي تبي يشتغل مع بداية تشغيل السيرفر" startup="1" protected="0"/> mtaserver.conf للمزيد من المعلومات عن ملف https://wiki.multitheftauto.com/wiki/Server_mtaserver.conf
  4. دقق بالجمله هذي يقولك" جا " يعني لواستخدم كودك وضغط واحد توه داخل السيرفر بيطلع عنده 1 ماهو صاير 3 خطـا عليك جرب الكود هذآ addEventHandler("onClientGUIClick", root, function() if (source == button) then triggerServerEvent("onbtn",root) end end) addEventHandler("onClientRender", root, function() guiSetText(label, getElementData(root, "boo") or 0) end) السيرفر addEvent("onbtn",true) addEventHandler("onbtn",getRootElement(), function() if not getElementData(getRootElement(),"boo") then setElementData(getRootElement(),"boo",0) end setElementData(getRootElement(),"boo", (getElementData(getRootElement(),"boo")+1) ) end) root يا حبيبي لاحظ أني مستخدم و ألمنت داتا للتحديث في حال تغير الألمنت داتا onClientRender مع أفنت عشان كذا قبل لا ترد جرب الكود بعدين تعال و فكر ترد بالنسبة للكود أنا نسيت شغله التعديل -- Client Side -- addEventHandler("onClientGUIClick", root, function() if (source == button) then setElementData(root, "xxx", (getElementData(root, "xxx") or 0) +1) end end) addEventHandler("onClientRender", root, function() guiSetText(label, getElementData(root, "xxx") or 0) end) -- Server Side -- setElementData(root, "xxx", 0) (التعديل ذا لتصفير الرقم في حالة أعادة تشغيل المود (ريستارت
  5. https://forum.multitheftauto.com/viewtopic.php?f=104&t=31668
  6. TAPL

    setTimer prob

    Change this (line 10) setElementFrozen (p, false) to setElementFrozen(source, false)
  7. TAPL

    طلب

    https://forum.multitheftauto.com/viewtopic.php?f=91&t=47535 https://community.multitheftauto.com/index.php?p=resources&s=details&id=5613
  8. setElementData(root, "xxx", 0) addEventHandler("onClientGUIClick", root, function() if (source == button) then setElementData(root, "xxx", (getElementData(root, "xxx") or 0) +1) end end) addEventHandler("onClientRender", root, function() guiSetText(label, getElementData(root, "xxx") or 0) end)
  9. @LI7IL, Not this what he is looking for, he wants to know if the player is into wall (wall bug).
  10. TAPL

    setTimer prob

    Actually, what is this code do? addCommandHandler('lol', function(p) setTimer(killPed, 5000, 1, p) outputChatBox("You'll die in 5 seconds!", p, 255, 255, 255, false) end ) Edit: if "freeroam" is running, this will cause for you problem because "freeroam" has command "kill" while this will cause to you die right away, and after 5 sec again you will die
  11. lol. This should work without flickers. guiSetProperty(img, "AlwaysOnTop", "true")
  12. You need to edit scoreboard.
  13. Mostly, this is caused from resource "Freeroam", but since you're using "race" there are two possibilities: 1- You were test your scripts in your lan server and Freeroam was running. 2- You have other resource has event onPlayerChat and whenever you say anything in the chat it will outputChatBox without cancelEvent and because this you will see it twice.
  14. ???????????????? getAccountName ( * )
  15. https://wiki.multitheftauto.com/wiki/Anti-cheat_guide
  16. TAPL

    scoreboard

    You will need to use SQL function, but if you want ready one you can use Gang System by castillo. https://community.multitheftauto.com/index.php?p=resources&s=details&id=1514
  17. TAPL

    scoreboard

    Do you have already Group System? To set value for column in scoreboard you need to use setElementData like this setElementData(source, "Group", "Hello")
  18. -- Server Side -- <~~~ تشوفها؟ Marker1 = createMarker(1555, -1675.5999755859, 16.89999961853, "arrow", 1, 0, 0, 255, 170) Marker2 = createMarker(246.89999389648, 62.200000762939, 1004.299987793, "arrow", 1, 0, 0, 255, 170) setElementInterior(Marker2, 6) function onHit(player) if not getElementType(player) == "player" then return end if source == Marker1 then setElementInterior(player, 6, 247, 63,1003.5999755859) elseif source == Marker2 then setElementInterior(player, 0, 1553.4000244141, -1675.5999755859, 16.200000762939) end end addEventHandler("onMarkerHit", root, onHit)
  19. TAPL

    need help

    My code work and i have test it before i post it. Entity code will bug the Cursor (if you press right click and the Cursor was already showing). How it will be bugged? 1- Open freeroam (F1). 2- Press right button and don't release it. 3- Close freeroam (F1). 4- Release the right button. 5- Watch the result.
  20. ههههههه كفو و شنب روح جرب خش ماركر تلقاه جاب معك السيرفر كله ههه
  21. player غير كلمة إلى hitElement
  22. TAPL

    Colors

    https://wiki.multitheftauto.com/wiki/ToHex
  23. TAPL

    need help

    function funcContinueToDriveOrWalk(_,varContinueToDriveOrWalk) if (varContinueToDriveOrWalk == "down") then showCursor(true) else showCursor(false) end end bindKey("mouse2","both",funcContinueToDriveOrWalk)
  24. أكتب في أف8 /debugscript 3 و قل لنا وش الأخطاء الي عندك
  25. ?????????????????????????????????????????????????????????????? زر دليت خربان عندك و إلا كيف؟
×
×
  • Create New...