Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. فكرة لشخص نوب: لوحة فيها زر، لما تضغط الزر يجيك كيك أو خلنا نسوي تحسين للفكرة: لوحة فيها زر، لما تضغط الزر مره ممكن يعطيك كيك او مره يقتلك او مره يعطيك جائزة عبارة عن فلوس
  2. إذا كنت انت الي مسويهم رح تعرف كيف تشغلهم
  3. addEventHandler removeEventHandler setTimer
  4. الفنكشن يعطيك الوقت و التاريخ و بعده انواع
  5. عيب الطريقة ذي كل مرة تخش السيرفر رح تحمل الملفات من جديد
  6. TAPL

    about bool

    https://wiki.multitheftauto.com/wiki/Boolean
  7. You can't even write proper English. I wonder how you will be able to explain the details of the "modes". And by the way, wrong section.
  8. أو الأفضل استخدام getElementsWithinColShape * جنرال كودك الأول خطأ
  9. ^ + getElementsByType -- جلب جدول يحتوي على كل اللاعبين الي بالسيرفر for -- لوب على الجدول
  10. You must include the function smoothMoveCamera in your code.
  11. Don't forget this: Client file security https://wiki.multitheftauto.com/wiki/Filepath
  12. Go to the home page http://www.delux-host.com Click on Login wherever your server location.
  13. local playerWeapons = { } addEventHandler ( "onPlayerWasted", root, function ( ) if ( not playerWeapons [ source ] ) then playerWeapons [ source ] = { } end for slot = 0, 12 do local weapon = getPedWeapon ( source, slot ) if ( weapon > 0 ) then local ammo = getPedTotalAmmo ( source, slot ) if ( ammo > 0 ) then playerWeapons [ source ] [ weapon ] = ammo end end end end ) addEventHandler ( "onPlayerSpawn", root, function ( ) if ( playerWeapons [ source ] ) then for weapon, ammo in pairs ( playerWeapons [ source ] ) do giveWeapon ( source, tonumber ( weapon ), tonumber ( ammo ) ) end end playerWeapons [ source ] = nil end ) * مو انا مسوي الكود
  14. TAPL

    Alive players

    You need to use a save function such as account data or db or xml. You can't save the table itself, for that you need to convert it to string so that you can save it. toJSON -- convert the table to string fromJSON -- convert the string back to table
  15. kTable = {} addCommandHandler("kill", function(player) if not isPedDead(player) and not isPedInVehicle(player) then if not isTimer(kTable[player]) then setElementFrozen(player, true) kTable[player] = setTimer(function(player) if isElement(player) then killPed(player) setElementFrozen(player, false) end kTable[player] = nil end, 8000, 1, player) exports["guimessages"]:outputServer(player, "you will killed after 10 second __ To cancel it write ckill", 0, 255, 0, false ) end end end) addCommandHandler("ckill", function(player) if isTimer(kTable[player]) then setElementFrozen(player, false) exports["guimessages"]:outputServer(player, "you has been Successfully cancel it", 0, 255, 0, false) killTimer(kTable[player]) kTable[player] = nil end end)
  16. vehicleManager defined where?
  17. Sorry, but we don't give support with leaked scripts.
  18. https://wiki.multitheftauto.com/wiki/Client_Scripting_Functions#Drawing_functions
  19. This is not possible at the moment, though it been requested: https://bugs.multitheftauto.com/view.php?id=7345
  20. والله ملقوف انت كل شوي طالع لواحد تقله غلط جربه اول وتعال قول خطأ مشكلتك تبرمج بتفكير سطحي جداً و ما تاخذ بكل الأحتمالات خلني احلل كودك نجي لكود السيرفر انت جالس تسوي لوب على كل اللاعبين و مسوي متغير داخل اللوب لكن فكر فيها زين المتغير راح يتغير داخل اللوب و يوقف على آخر لاعب في اللوب بالأخير انت تسوي تريقر للاعب الي بالمتغير و هو آخر واحد باللوب انت فرحان تقول يشتغل لكن فكر فيها ترا انت لحالك بسيرفر جهازك و انت الوحيد الي موجود في اللوب عشان كذا تشوف يجي لك الكلام بالأخير طالما الأفنت نفسه بالسيرفر فلا يوجد اي داعي ل تريقر من سيرفر إلى كلينت عشان تطلع كلام لكل اللاعبين root في السيرفر وايضاً دون الحاجة إلى لوب كل الي عليك تستخدم outputChatBox بكل بساطة تستخدم التريقر تحتاجة إذا كنت تبي تطلع كلام لكل اللاعبين و كودك كان كلينت هنا تحتاج تسوي تريقر للسيرفر
  21. ^^ مثالك كله خطأ على فكرة triggerClientEvent يفرق عن triggerServerEvent و ترا
  22. لاهنت تابل ممكن شرح لـ هاذا client="1.4.0" server="1.4.0" /> الجواب في الصورة
  23. ضيف السطر ذا باليمتا client="1.4.0" server="1.4.0" />
  24. TAPL

    طلب كود

    server? دابليو تي اف شوف كودك انت بس ركز ترا مافيه افنت بالسيرفر حق ريندر (مو موجود)ز ثاني شي الفنكشات ذي كلينت
×
×
  • Create New...