Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. It would be better to get the account outside the loop.
  2. localPlayer --> source
  3. يا نهار اسود وش الي موجود من قبل انا ما اقول لك ضيف الكود ذا ذا موجود من قبل logIn(source, account, password) انا اقول لك ضيف ذا بعده triggerClientEvent(source, "onLoginSuccess", source)
  4. الفنكشن وين تشوفه انت؟
  5. بعد السطر ذا logIn(source, account, password) تحط ذا الكود
  6. لا تجنني انا اقصد الكود حق تسجيل الدخول الي انت معدل فيه
  7. المشكلة بكودك و بما انك ما حطيت كودك محد يقدر يقول لك وين المشكلة
  8. شوف السيرفر في كود تسجيل الدخول لما يسجل دخول فيه تريقر للكلينت عشان يظهر اختيار التيم و الشخصية triggerClientEvent(source, "onLoginSuccess", source)
  9. ^ ذي فنكشات مو افنتات و هوعبارة عن ويكي للتكتيك Wiki.chm مع مود التكتيك ملف اسمه فيه فنكشات و افنتات الكلينت و السيرفر بس مشكلته انه باللغة الروسية بس رح تقدر تعرف اسماء الفنكشات و الأفنتات و ممكن يساعدك قوقل بالترجمة
  10. This not even a type it's vehicle name -_-".
  11. This mta client problem, just update your mta.
  12. كودك مليان اخطاء function ped(cmd, id) local id = tonumber(id) if (id) then local x, y, z = getElementPosition(localPlayer) x = x+4 guard = createPed(id, x, y, z) setPedLookAt(guard, x, y, z) local xg, yg = getElementPosition(guard) local dis = getDistanceBetweenPoints2D(x, y, xg, yg) if (dis > 5) then setPedControlState(guard, "forwards", true) else setPedControlState(guard, "forwards", false) end else outputChatBox("syntax:/guard Skin ID") end end addCommandHandler("guard", ped)
  13. ليه حاطه _ ذا و عندك خطأ في مكان الأند و عموماً البيد ما رح يمشي لان دائماً رح يكون البيد جنبك اول ما تسويه الكود حقك مو عملي ._.
  14. Did you add it in the meta of the original resource which contains the function otherTestFunction or the resource where you are trying to call the function?
  15. Nice English lol.
  16. الميوت مافيه له وقت اصلاً
  17. يغلق
  18. TAPL

    1.4 bug

    sver in F8. And check the debug if there any error debugscript 3 in F8.
  19. TAPL

    1.4 bug

    I mean by version the release number r-6xxx. I don't think there any problem since it working in my server.
  20. TAPL

    1.4 bug

    What client/server version you've tried? And are you sure you've used the code server side in the meta?
  21. local x = 0 local xx = 400 addEventHandler("onClientRender", root, function() if x < xx then x = x + 0.5 guiSetPosition(GUIEditor.window[1], x, 200, false) end end)
  22. ^ getPlayerVersion
  23. TAPL

    gun shop help

    guiWindowSetSizable( wndAmmu, false ) guiWindowSetMovable( wndAmmu, false ) guns = { {"m4", 500}, } gridAmmu = guiCreateGridList(0.01, 0.2, 0.99, 0.5, true, wndAmmu) guiGridListAddColumn(gridAmmu, "Guns", 0.85) guiGridListAddColumn(gridAmmu, "Price", 0.85) for i,gun in ipairs(guns) do row = guiGridListAddRow(gridAmmu) -- guiGridListSetItemText(gridAmmu, row, 1, tostring(gun[1]), false, false) -- It's gun not guns. -- guiGridListSetItemData(gridAmmu, row, 1, tostring(gun[2])) -- It's gun not guns and data not needed since you already have Price column. guiGridListSetItemText(gridAmmu, row, 2, tostring(gun[2]), false, false) end function buyGun() local row, col = guiGridListGetSelectedItem(gridAmmu) if (row and col and row ~= -1 and col ~= -1) then -- local gun = tostring(guiGridListGetItemData(gridAmmu, row, 0)) -- Wrong column ID and you need text not data. -- local price = tonumber(guiGridListGetItemData(gridAmmu, row, 1)) -- Wrong column ID and you need text not data. local gun = tostring(guiGridListGetItemText(gridAmmu, row, 1)) local price = tonumber(guiGridListGetItemText(gridAmmu, row, 2)) if (( price ~= "" ) and ( gun ~= "" )) then triggerServerEvent("buyGunForPlayer", localPlayer, getWeaponIDFromName(gun), price) -- You need to get the weapon ID from the weapon name. end end end addEventHandler("onClientGUIClick", buyGunBtn, buyGun, false) function closeAmmuGui() if (source == cancelGunBtn) then guiSetVisible(wndAmmu,false) showCursor(false) end end addEventHandler("onClientGUIClick", cancelGunBtn, closeAmmuGui) function showGUIp() guiSetVisible(wndAmmu,true) showCursor(true) end addEvent("showAmmuGUI",true) addEventHandler("showAmmuGUI", getRootElement(), showGUIp)
  24. TAPL

    طلب

    setTimer -- تسوي تايمر لما اللاعب يدخل الوظيفة takePlayerMoney -- و تحط فنكشن سحب الفلوس داخل التايمر Event: 'onPlayerWasted' -- تستخدم الحدث فيه حاله ان اللاعب الي عليه ايقونة مات -- تحقق ان القاتل هو اللاعب الي دخل الوظيفة isTimer -- تحقق ان التايمر موجود الي سويته لما اللاعب دخل الوظيفة killTimer -- نلغي التايمر لان اللاعب الي علية ايقونة مات عشان ما يسحب فلوس
×
×
  • Create New...