Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. TAPL

    Set Camera

    Read the Note at wiki: https://wiki.multitheftauto.com/wiki/SpawnPlayer
  2. guiSetAlpha
  3. TAPL

    Look this

    How did you scripted 50% and you not really know how to open port. You don't even know how to flip your modem. However, you have spend 2-3 weeks trying to open the port and guess what, not yet succeeded.
  4. طبعاً عشان المود يقدر يعطي صلاحية لمود ثاني لازم المود يكون عنده صلاحية أعطاء صلاحيات
  5. -- Client Side -- GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Window[1] = guiCreateWindow(247,10,482,584,"",false) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,202,464,383,false,GUIEditor_Window[1]) tab4 = guiCreateTab("info",GUIEditor_TabPanel[1]) labelAccName = guiCreateLabel(12,90,169,26,"Account Name : ",false,tab4) playerList = guiCreateGridList(200, 6, 140, 360, false, tab4) guiGridListSetSelectionMode(playerList, 2) local cl = guiGridListAddColumn(playerList, "Players List ...", 0.85) setTimer( function() guiGridListClear(playerList) if (cl and guiGetVisible(GUIEditor_Window[1] ) == true ) then for _,name in ipairs(getElementsByType("player")) do local rw = guiGridListAddRow(playerList) guiGridListSetItemText(playerList, rw, cl,getPlayerName(name), false, false) end end end ,4000,0) function onClickPlayerName () local name = guiGridListGetItemText(playerList, guiGridListGetSelectedItem(playerList), 1) if name == "" then guiSetText(labelAccName, "Account Name : ") return end local thePlayer = getPlayerFromName(name) triggerServerEvent("T", localPlayer, thePlayer) end addEventHandler("onClientGUIClick", playerList, onClickPlayerName) addEvent("setText", true) addEventHandler("setText", root, function(x) guiSetText(labelAccName, "Account Name : "..tostring(x)) end) -- Server Side -- addEvent("T", true) addEventHandler("T", root, function(thePlayer) local x = getAccountName(getPlayerAccount(thePlayer)) or "N/A" triggerClientEvent(source, "setText", source,x) end)
  6. ودي أعرف المسافة الي بالكود من وين جات انا ناسخه منك أنا كودي مافيه مسافة ذا كودي addEventHandler("onPlayerWasted", root, function(_,killer) local name = getPlayerName(source) local money = math.random(200,1000) givePlayerMoney(killer, money) takePlayerMoney(source, 100) outputChatBox("You killed "..name.." and get "..money, killer, 0,255,0) end) وذا كودك addEventHandler("onPlayerWasted", root, function(_,killer) local name = getPlayerName(source) local namek = getPlayerName(killer) local money = math.random(200,1000) givePlayerMoney(killer, money) takePlayerMoney(source, 100) outputChatBox("You killed "..name.." and get "..money, killer, 0,255,0) outputChatBox(namek.." killed You and You lost 100$", source, 255,0,0) end)
  7. ودي أعرف المسافة الي بالكود من وين جات
  8. You a resource that trying to call a function from resource called "stats" and this resource is not started/running just start it in F8 /start stats
  9. https://forum.multitheftauto.com/viewtopic.php?f=91&t=47897
  10. addEventHandler("onPlayerWasted", root, function(_,killer) local name = getPlayerName(source) local money = math.random(200,1000) givePlayerMoney(killer, money) takePlayerMoney(source, 100) outputChatBox("You killed "..name.." and get "..money, killer, 0,255,0) end)
  11. I have test the code, your object look small and it really doesn't trigger the event onElementClicked, the solution is create other object can trigger the event onElementClicked in same place of your small object and set its alpha to 0 and set its collision to false.
  12. غير ذا function(killer) إلى function(_,killer)
  13. i guess that because the vehicle locked client side and isVehicleLocked server side won't tell you that the vehicle is locked.
  14. Make sure you have it server side in meta.xml
  15. نترك لك المجال تصلحه بنفسك بعد ما حددنا لك الأخطاء
  16. getRootElement() ناقص فاصله في أول سطر بعد ناقص قوس في سطر 7 بعد الأند هو عدد الطلقات onPlayerWasted أول بارتمر في أفنت https://wiki.multitheftauto.com/wiki/OnPlayerWasted
  17. الطلب ذا أنطرح أكثر من مره كل الي عليك تستخدم خاصية البحث و بتلقى الي تبيه https://forum.multitheftauto.com/viewtopic.php?f=119&t=47286 https://forum.multitheftauto.com/viewtopic.php?f=119&t=48697
  18. أنت تستهبل و تقول ساعدوني GUIEditor_Window[1] ماخذ مثال الويكي وحاط فيه حق النافذه المشكلة الكود كله سيرفر أيش دخل أم النافذه و أساساً المثال ذا ما لأمه دخل بالي أنت تبيه ذا المثال يحط أسماء الأدمنية في الشات لا غير
  19. Replace this: setCameraTarget(source,source) With this: setTimer(setCameraTarget,50,1,source)
  20. WTF is this if (admins == "GUIEditor_Window[1]") then
  21. You're welcome.
  22. You missed "end" in function createSpeaker.
  23. TAPL

    طلب

    حط كودك الي ما اشتغل
  24. guiRoot؟؟؟؟؟؟؟ https://wiki.multitheftauto.com/wiki/Predefined_variables_list
  25. TAPL

    Anti-Team kill

    https://wiki.multitheftauto.com/wiki/OnClientPlayerHeliKilled
×
×
  • Create New...