Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. marker = createMarker(-2376.4399414963, 909.61828613281, 44.4453125, "cylinder", 2, 255, 255, 0, 255) blip = createBlip(-2376.4399414963, 909.61828613281, 44.4453125, 45) function buy(id) if (getPlayerMoney(source) >= 200) then takePlayerMoney(source, 200) setElementModel(source, id) setAccountData(getPlayerAccount(source), "standardskin", id) else outputChatBox("You don't have money", source, 255,255,255,true) end end addEvent("useSkin",true) addEventHandler("useSkin", root, buy) function guishow(hitPlayer) triggerClientEvent(hitPlayer, "guishowc", hitPlayer) end addEventHandler("onMarkerHit", marker, guishow)
  2. setClipboard أيش دخل showChat بـ ؟؟؟ أكواد غريبه عجيبه
  3. مافيه أفنت بس فيه فنكشن عن طريقة تقدر تعرف إذا كان في شي قريب منك أو لا isLineOfSightClear بس هذي صعبه ودقيقة للاستعمال على مبتدئ ذي مشكلته مهي مشكلتنا إذا ما يتعلم ما راح يقدر يسوي شي غير كوبي بست و على الشوبات الي كل شوي واحد حاط نفس الكود
  4. إذا فكرت تسوي الكود بنفسك بدون ما تسرقه/تاخذه من أي مكان ثاني تعال حط موضوع
  5. مافيه أفنت بس فيه فنكشن عن طريقة تقدر تعرف إذا كان في شي قريب منك أو لا isLineOfSightClear
  6. This idiot called "sidak" download community resources and then reupload them even without any change. I think he should banned. https://community.multitheftauto.com/index.php?p=profile&id=330154 DONE
  7. ردود خارج الموضوع = دليت
  8. في سطر 9 أنت حاط قوسين setVehicleRotation (vehicle, rx +180, ry, rz +180)) عدله ليكون كذا setVehicleRotation (vehicle, rx +180, ry, rz +180)
  9. المثال سيرفر ايش دخل الكلينت
  10. مافهمت ايش الي اعطيك طلبت مثال و عطيتك
  11. الأثنين سيرفر
  12. حط كودك الي ما ضبط
  13. addCommandHandler("gm", function(player, cmd, toWho, amount) local toWho = getPlayerFromName(toWho) local amount = tonumber(amount) if toWho and amount then if getPlayerMoney(player) >= amount then takePlayerMoney(player, amount) givePlayerMoney(toWho, amount) end end end) addCommandHandler("ping", function(player) outputChatBox("Your ping is: "..tostring(getPlayerPing(player)), player, 255,255,255) end)
  14. كيف يعني جاهزه يعني ابيها جاهزه "أيش تقصد بكلمة "جاهزه
  15. تابل ابي الاكواد جاهزه لاهنت كيف يعني جاهزه
  16. getPlayerMoney takePlayerMoney givePlayerMoney getPlayerPing
  17. TAPL

    Need help.

    Aren't you mean that you have a grid list where it has skin ids and when you click on it, it will set the skin to show you, but if you decided to cancel and close the window, you want the old skin back?
  18. TAPL

    Need help.

    Event: onClientGUIClick -- when he open the gridList getElementModel -- get his current skin setElementData -- save the skin id as element data Event: onClientGUIClick -- when he click on button "yesOut" getElementData -- get the skin id from the element data that you have save it when the gridList opened setElementModel -- set the skin back
  19. addCommandHandler("buy", function(player, cmd, what) if what == "nitro" then if (getPlayerMoney(player) >= 3000) then local vehicle = getPedOccupiedVehicle(player) if vehicle then takePlayerMoney(player,3000) local name = getPlayerName(player) addVehicleUpgrade(vehicle, 1010) outputChatBox("[ #0000ff"..name.." #ffffff] #007fffhas bought [ #ffff00Nitro #007fff]", player, 255,255,255,true) else outputChatBox("You aren't in vehicle!", player, 255,0,0,true) end else outputChatBox("You Dont Have [#999999 3,000 #007fff]", player, 0,127,255,true) end end end)
  20. أنت ما نسخت الكود كامل ناقص الأند و القوس الي بالأخير أرجع أنسخه كامل
  21. addEventHandler("onPlayerWasted", root, function() outputChatBox("Wait 15 seconds.", source, 255, 255, 255, true) local Team = getPlayerTeam(source) if Team then if Team == getTeamFromName("اسم التيم الأول") then setTimer(spawnPlayer, 15000, 1, source, x, y, z) -- التيم الأول x, y, z الأحداثيات الي يعيد فيها elseif Team == getTeamFromName("اسم التيم الثاني") then setTimer(spawnPlayer, 15000, 1, source, x, y, z) -- التيم الثاني x, y, z الأحداثيات الي يعيد فيها end else -- لو كان بدون تيم setTimer(spawnPlayer, 15000, 1, source, x, y, z) -- بدون تيم x, y, z الأحداثيات الي يعيد فيها end end)
  22. -- Server Side -- addEventHandler("onPlayerWasted", root, function() outputChatBox("Wait 15 seconds.", source, 255, 255, 255, true) setTimer(spawnPlayer, 15000, 1, source, x, y, z) -- x, y, z الأحداثيات الي يعيد فيها end)
  23. I guess gui.lua is in folder client. change this to
  24. ادد = ؟؟
  25. bindKey(source,"1",down,buyN) source = ?? down = ??
×
×
  • Create New...