Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. addEventHandler("onClientPlayerDamage", localPlayer, function(_, wp) if wp == 54 then -- 54 is the fall id. cancelEvent() end end) https://wiki.multitheftauto.com/wiki/Death_Reasons
  2. فنكشن الي يسوي السلاح كلينت فقط
  3. We don't give support with leaked scripts.
  4. str = "Something, something, something," fStr = string.sub(str, 1, -2) print(fStr) -- > "Something, something, something"
  5. TAPL

    [HELP] Script

    You're welcome.
  6. I guess that because you have tried to change other player element data from your client.
  7. TAPL

    [HELP] Script

    addEventHandler("onClientPlayerDamage", localPlayer, function(a) if a and getElementType(a) == "player" then if getElementData(a, "k:ranga") == "admin" and getElementData(source, "k:ranga") == "cywil" then else cancelEvent() end elseif a and getElementType(a) == "vehicle" then cancelEvent() end end)
  8. ينقل إلى قسم المساهمات
  9. TAPL

    [HELP] Script

    addEventHandler("onClientPlayerDamage", localPlayer, function(a) if a and getElementType(a) == "player" then if getElementData(a, "k:ranga") == "admin" and getElementData(source, "k:ranga") == "cywil" then else cancelEvent() end end end)
  10. TAPL

    [HELP] Script

    addEventHandler("onClientPlayerDamage", localPlayer, function(a) if a and getElementType(a) == "player" then if getElementData(source, "k:ranga") == "admin" then cancelEvent() end end end) addEventHandler("onPlayerLogin", root, function(_,konto) if konto then if isObjectInACLGroup("user."..getAccountName(konto) ,aclGetGroup("Admin")) then setElementData(source, "k:ranga", "admin") else setElementData(source, "k:ranga", "cywil") end end end)
  11. At line 11 you selected leader and at line 12 you tried to get name but you haven't selected it.
  12. Marker = createMarker(805, 1808, 2, "cylinder", 1, 255, 0, 0, 170)-- الماركر -- wnd = guiCreateWindow(233, 179, 303, 222, "Text", false) -- اللوحه -- addEventHandler("onClientMarkerHit", Marker, function(hitPlayer) if hitPlayer == localPlayer and not isPedInVehicle(localPlayer) then guiSetVisible(wnd, true) showCursor(true) end end)
  13. اوقع عندك كود الحفظ مكرر مرتين ينقل إلى قسم البرمجة
  14. local _, _, Pz = getElementPosition(player) local _, _, Mz = getElementPosition(marker) if Mz + 3 >= Pz and Pz >= Mz - 1 then -- Your code end
  15. onClientResourceStart نقلت كود الصورة إلى داخل الأفنت img = guiCreateStaticImage ( 0, 0, 674, 411, 'image.png', false, GUIEditor.window[1] ) السبب ان الأفنت ذا يشتغل بعد ما الكود يتشغل من فوق لين تحت و انت كنت حاط كود الصورة تحت و كود النافذه داخل الأفنت لما انت سويت الصورة النافذه ما كانت موجوده بالتالي الصورة ما راح تكون داخل النافذه
  16. http://bugs.multitheftauto.com/view.php?id=7313
  17. I made enough code, now your turn to add more features.
  18. It create two markers one of them to teleport back.
  19. First location is where you were stand at the time you used the command which the second location is what you write within the command, Col1, Col2 and Col3 is rgb color of the marker (number between 0 and 255) and also the alpha 0-255, the size is the size of the marker. No comma is needed when you use the command.
  20. example في كودك انت حاولت تضيف الأفنت على الفنكشن غير موجود لانك حاولت تضيف الأفنت قبل عمل الفنكشن example لكن الفنكشن لازم تضيف الأفنت تحت الفنكشن function example() if source == GUIEditor_Button[1] then guiSetVisible(GUIEditor_Window[1], false) showCursor(false) triggerServerEvent("team", localPlayer) end end addEventHandler("onClientGUIClick", root, example)
  21. dbConnect will create the database file if it not exist.
  22. جرب GUIEditor = { button = {}, window = {}, staticimage = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(0, 0, 674, 411, "مود شراء الشخصيات I بواسطة علاء I سكايب AlaaTailakh", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF000BFE") img = guiCreateStaticImage ( 0, 0, 674, 411, 'image.png', false, GUIEditor.window[1] ) GUIEditor.button[1] = guiCreateButton(20, 295, 101, 47, "شراء بـ5000$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFEE300") GUIEditor.button[2] = guiCreateButton(154, 295, 101, 47, "شراء بـ5000$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFEE300") GUIEditor.button[3] = guiCreateButton(285, 296, 101, 46, "شراء بـ7500$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFEE300") GUIEditor.button[4] = guiCreateButton(418, 295, 101, 46, "شراء بـ10000$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFEE300") GUIEditor.button[5] = guiCreateButton(549, 294, 101, 46, "شراء بـ10000$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFFEE300") GUIEditor.button[6] = guiCreateButton(154, 351, 232, 46, "الـــغـــاء", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFFE0000") GUIEditor.staticimage[1] = guiCreateStaticImage(10, 19, 121, 266, "Images/image2.png", false, GUIEditor.window[1]) GUIEditor.staticimage[2] = guiCreateStaticImage(144, 19, 121, 266, "Images/image10.png", false, GUIEditor.window[1]) GUIEditor.staticimage[3] = guiCreateStaticImage(275, 19, 121, 266, "Images/image11.png", false, GUIEditor.window[1]) GUIEditor.staticimage[4] = guiCreateStaticImage(408, 19, 121, 266, "Images/image12.png", false, GUIEditor.window[1]) GUIEditor.staticimage[5] = guiCreateStaticImage(539, 19, 121, 265, "Images/image13.png", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(418, 350, 232, 46, "لن تحصل على شخصية عند قتلك ", false, GUIEditor.window[1]) end ) addEventHandler("onClientResourceStart", resourceRoot, function() guiSetVisible(GUIEditor.window[1],false) showCursor(false) end ) addEventHandler("onClientGUIClick",getRootElement(), function () if source == GUIEditor.button[6] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end ) bindKey("f2","down", function () if guiGetVisible(GUIEditor.window[1]) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) else guiSetVisible(GUIEditor.window[1],true) showCursor(true) end end ) addEventHandler("onClientGUIClick", root, function () if source == GUIEditor.button[1] then triggerServerEvent("202", localPlayer) end end ) addEventHandler("onClientGUIClick", root, function () if source == GUIEditor.button[2] then triggerServerEvent("210", localPlayer) end end ) addEventHandler("onClientGUIClick", root, function () if source == GUIEditor.button[3] then triggerServerEvent("211", localPlayer) end end ) addEventHandler("onClientGUIClick", root, function () if source == GUIEditor.button[4] then triggerServerEvent("212", localPlayer) end end ) addEventHandler("onClientGUIClick", root, function () if source == GUIEditor.button[5] then triggerServerEvent("213", localPlayer) end end ) addEventHandler('onClientResourceStart',resourceRoot,function () txd = engineLoadTXD( 'Skins/vmaff1.txd' ) engineImportTXD( txd, 211 ) dff = engineLoadDFF('Skins/vmaff1.dff', 211) engineReplaceModel( dff, 211 ) end) addEventHandler('onClientResourceStart',resourceRoot,function () txd = engineLoadTXD( 'Skins/2.txd' ) engineImportTXD( txd, 212 ) dff = engineLoadDFF('Skins/2.dff', 212) engineReplaceModel( dff, 212 ) end) addEventHandler('onClientResourceStart',resourceRoot,function () txd = engineLoadTXD( 'Skins/28.txd' ) engineImportTXD( txd, 210 ) dff = engineLoadDFF('Skins/28.dff', 210) engineReplaceModel( dff, 210 ) end) addEventHandler('onClientResourceStart',resourceRoot,function () txd = engineLoadTXD( 'Skins/66.txd' ) engineImportTXD( txd, 213 ) dff = engineLoadDFF('Skins/66.dff', 213) engineReplaceModel( dff, 213 ) end) addEventHandler('onClientResourceStart',resourceRoot,function () txd = engineLoadTXD( 'Skins/swmotr5.txd' ) engineImportTXD( txd, 202 ) dff = engineLoadDFF('Skins/swmotr5.dff', 202) engineReplaceModel( dff, 202 ) end) -------------------------- -------------------------- local images = { 'Images/a.png', 'Images/b.png', 'Images/c.png' }; -- نسوي جدول ب أسماء الصور local count = 0; -- نسوي متغير ونخلي قيمتة صفر setNextImage = function ( ) -- setNextImage نسوي وظيفة جديدة ب إسم count = count + 1 -- نزود قيمتة المتغير كل مره يزيد 1 if count == ( #images + 1 ) then -- نتحقق اذا قيمتة المتغير صارت اكبر من عدد القيم داخل الجدول -- "#" الرمز هذا معناه عدد القيم, بمعنى عدد القيم داخل الجدول طبعا هي 3 count = 1 -- نرجع قيمة المتغير 1 -- طبعا ممكن تسأل ليش ما نخليه صفر ؟ لأن بيجي خطأ لأن قيم الجدول تبدأ من واحد واعلى end -- نغلق التحقق end -- نغلق الوظيفة setTimer ( function ( ) -- نسوي تايمر عشان يغير الصور setNextImage ( ) -- نشغل الوظيفه اللي سويناها فوق guiStaticImageLoadImage ( img, images [ count ] ) -- count نغير الصورة حسب قيمة المتغير end,2000,0, true ) -- نغلق التايمر, مع اضافه وقت له, وتكرار لا نهائي
  23. سطر 128 في الكلينت في التيبل انت حاط اسماء ملفات الصور لكن مو حاط المجلد الي الصور فيه و ذا الي واضح لي من الميتا ان الصور عندك داخل مجلد
  24. This script is badly scripted, i improved it. function elevator(player, cmd, x1, x2, x3, col1, col2, col3, alpha, size) local x1, x2, x3, col1, col2, col3, alpha, size = tonumber(x1), tonumber(x2), tonumber(x3), tonumber(col1), tonumber(col2), tonumber(col3), tonumber(alpha), tonumber(size) if x1 and x2 and x3 and col1 and col2 and col3 and alpha and size then local x, y, z = getElementPosition(player) local marker1 = createMarker(x, y, z + 1, "arrow",2, col1, col2, col3, alpha) setElementData(marker1, "Pos", {x1, x2 + 2, x3}) addEventHandler("onMarkerHit", marker1, function(hitPlayer) if getElementType(hitPlayer) == "player" then local x, y, z = unpack(getElementData(source, "Pos")) setElementPosition(hitPlayer, x, y, z) fadeCamera(hitPlayer, false, 0.1, 255, 0, 0) setTimer(fadeCamera, 500, 1, hitPlayer , true, 0.5) end end) local marker2 = createMarker(x1, x2, x3 + 1, "arrow", size, col1, col2, col3, alpha) setElementData(marker2, "Pos", {x, y + 2, z}) addEventHandler("onMarkerHit", marker2, function(hitPlayer) if getElementType(hitPlayer) == "player" then local x, y, z = unpack(getElementData(source, "Pos")) setElementPosition(hitPlayer, x, y, z) fadeCamera(hitPlayer, false, 0.1, 255, 0, 0) setTimer(fadeCamera, 500, 1, hitPlayer , true, 0.5) end end) else outputChatBox("[invalid Syntax]: /addelevator [x], [y], [z], [Col1], [Col2], [Col3], [Alpha], [size] ", player, 255, 0, 0) end end addCommandHandler("addelevator", elevator)
  25. You was able to make the whole script and cannot change a key from 1 to the mouse wheel? Obviously, it's not your script.
×
×
  • Create New...