Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. http://delux-host.com/main/contact
  2. setPedStat 24: MAX_HEALTH
  3. You need to use pairs instead of ipairs.
  4. الحين لو قلت لك روح الويكي انت بتروح الويكي ايش تسوي؟
  5. يا رجال تحس الموضوع ماكينه بيبسي تضغط على زر يطلع لك بيبسي طيب ايش الفايده نعطيك اكواد جاهزه و انت تسوي كوبي بست بالأخير Shop by MR.Su1T4N
  6. ايه حتى انا ابي اكواد للشوب ابي كود ارسال بيتزا و ابي كود ارسال بيبسي و ابي كود سوبر بيتزا و ابي كود سوبر خشم
  7. From line 211 to line 214 you need to add IF statement to make sure that the vehicle that were exploded does not have an ElementID (empty string or false). You're welcome.
  8. Exactly, the exploded vehicles does not disappear by default, you have other script destroyed the vehicle and that why it did not respawn and show you the error.
  9. Still the same error man, sorry: WARNING: [gameplay]/vehiclerespawn/explode.lua:2 Bad 'element' pointer @ 'respawnVehicle'(1) Impossible, you must have something else destroyed the vehicle before it respawned. What happen to the vehicle after it exploded?
  10. This is the wiki example as you want it. function respawnExplodedVehicle() setTimer(respawnVehicle, 5000, 1, source) end addEventHandler("onVehicleExplode", getRootElement(), respawnExplodedVehicle) https://wiki.multitheftauto.com/wiki/RespawnVehicle
  11. -- Client Side -- triggerServerEvent("kickplayer", localPlayer, thatPlayer) -- Server Side -- kickPlayer(thePlayer, source, "You did not follow the rules") outputChatBox(getPlayerName(thePlayer).. " was kicked by " ..getPlayerName(source), root, 255, 0, 0)
  12. كل كود مكتوب هل هو سيرفر ام كلينت او كلينت و سيرفر تشوف فوق مثلاً مكتوب Client-only function يعني بس كلينت يعني يجي بالكلينت و بالسيرفر Client and Server function او بس طبعاً الكود مو دايم يكون نفسه بالضبط في الكلينت و السيرفر لان المتطلبات حق الكود تختلف من الكلينت إلى السيرفر بالنسبة للكود حق النافذه الي انت حاطه هذا بس كلينت لما تفتح الرابط بتلقاه كاتب لك كذا element guiCreateWindow ( float x, float y, float width, float height, string titleBarText, bool relative ) و تحت كاتب لك شرح لكل الكلام x: يعني مكان النافذه بالشاشة بالعرض y: يعني مكان النافذه بالشاشة بالطول width: هذا عرض النافذه height: هذا طول النافذه titleBarText: هذا عنوان النافذه او الكلام الي يجي فوق relative: للأرقام العادية false هذا نوع الرقم الي راح تستخدمه في العرض و الطول بالعادة نحط طبعاً تلاحظ ان في كلام اخضر هذا معناته نوع الشي الي راح تحطه float: هذا رقم يكون ممكن تحط فيه بوينتات يعني مثل 100.56789 string: "Hello" هذا يكون كلام او رقم نصي يعني مثلاً int: هذا رقم بس بدون بوينتات مثل 100 bool: false او true هنا تحط مثال على استخدام الكود local window = guiCreateWindow(200, 250, 300, 350, "العنوان هنا", false)
  13. الفنكشن هذا يجيب لك لون الماركر int, int, int, int getMarkerColor ( marker theMarker ) int تشوف ان في 4 هذولا عباره عن رقم بين 0 -255 لما تجي تستخدم الفنكشن تسوي كذا local r, g, b, a = getMarkerColor(theMarker) ايش الي انت مو فاهمه بالضبط؟
  14. function search() guiGridListClear(gridList) local text = guiGetText(searchBar) if (text == "") then for index, player in ipairs(getElementsByType("player")) do if (player ~= localPlayer) then local row = guiGridListAddRow(gridList) guiGridListSetItemText(gridList, row, 1, getPlayerName(player), false, false) end end else for index, player in ipairs(getElementsByType("player")) do if (player ~= localPlayer) then if string.find (string.upper(getPlayerName(player)), string.upper(text), 1, true) then local row = guiGridListAddRow(gridList) guiGridListSetItemText(gridList, row, 1, getPlayerName(player), false, false) end end end end end addEventHandler("onClientGUIChanged", searchBar, search)
  15. Post the code?
  16. TAPL

    /updates help

    This make no sense. You know why i post the wiki link? because it would be a waste of time to Imagine which functions will be used and list them to you because i know you can't script.
  17. TAPL

    /updates help

    https://wiki.multitheftauto.com
  18. TAPL

    Question

    setElementData getElementData OR triggerServerEvent triggerClientEvent
  19. You should give the weapons back with event onPlayerSpawn.
  20. TAPL

    help me

    setElementPosition does not require interior argument so remove 0 and change the position to be a bit far away from the marker so it won't warp you back again.
  21. Line 141 (theCurrentAccoun > theCurrentAccount).
  22. مازبط يشتغل بس الوقت مايعمل تم التجربة والتعداد شغال .. اي وقت اللي تتكلم عنه ؟؟ @كنق عبودي انا ما عطيته كود بس كتبت ايش التعديل فيه
  23. reutrn في سطر 3 عندك خطأ في كلمة return المفروض تكون + المفروض تحذف القيمة من التيبل بعد ال 30 ثانية كذا time[player] = setTimer(function(player) time[player] = nil end,30000,1, player) مايعمل http://i.imgur.com/Yr2g20Y.jpg
  24. Yes, but you just have a typo "4.".
×
×
  • Create New...