Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. 1- غير ممكن 2- https://wiki.multitheftauto.com/wiki/Server_Commands#chgmypass ACL و تقدر تمنعه في أو عن طريق الأفنت https://wiki.multitheftauto.com/wiki/OnPlayerCommand
  2. أعطي ملفات السيرفر تصريح 777
  3. function re() local ip, port = "176.9.100.232", 22871 if ip and port then redirectPlayer(source, ip, port) setGameType("l~انتقال الى حكايم للهجولة~l") end end addEventHandler("onPlayerJoin", root, re) وتأكد أنك أضفت السكربت بقروب أدمن
  4. https://wiki.multitheftauto.com/wiki/IsObjectInACLGroup
  5. addCommandHandler("gw", function(player, cmd, id, amount) local Team = getPlayerTeam(player) if Team and id and amount then local WeaponName = getWeaponNameFromID(tonumber(id)) for i, players in ipairs(getElementsByType("player")) do if Team == getPlayerTeam(players) then giveWeapon(players, tonumber(id), tonumber(amount)) outputChatBox(getPlayerName(player).." has give you "..WeaponName.." !", players, 255,255,255,true) end end end end)
  6. شي طبيعي إذا ما كان عندك ألمنت داتا بعدد القتل و الموت لازم يكون عندك سكربت للقتل - الموت ذا موجود في البيس مود إذا كنت تستخدم البيس مود و أنت مطفيه وقت الي جالس تجرب بالأكواد شي طبيعي يقول 0
  7. false مستحيل يقول لك تأكد أنك نسخت الكود صح و حط كودك بعد ما عدلت عليه
  8. addEvent("scoreB1", true) addEventHandler("scoreB1", root, function() local kill = getElementData(source, "Kills") or 0 local death = getElementData(source, "Deaths") or 0 outputChatBox("Your Kill: "..kill.." | Your Death: "..death, root,255,255,0,true) end)
  9. تأكد أنك حطيت الكود سيرفر addEvent("infoB1", true) addEventHandler("infoB1", root, function() local playerMoney = getPlayerMoney(source) outputChatBox("#FFFF1A[#FFFFFF "..getPlayerName(source).." #FFFF1A] is Poor He Have : #FFFF1A[#00FF00 "..playerMoney.."$ #FFFF1F] ",root,255,255,0,true) end) + حط كود الكلينت
  10. addEvent("infoB1", true) addEventHandler("infoB1", root, function() local playerMoney = getPlayerMoney(source) outputChatBox("#FFFF1A[#FFFFFF "..getPlayerName(source).." #FFFF1A] is Poor He Have : #FFFF1A[#00FF00 "..playerMoney.."$ #FFFF1F] ",root,255,255,0,true) end)
  11. https://wiki.multitheftauto.com/wiki/ShowPlayerHudComponent
  12. local playermoney = getPlayerMoney ( )
  13. TAPL

    [HELP] script

    function ShowGUI() guiSetVisible(JobGUI, not guiGetVisible(JobGUI)) showCursor(guiGetVisible(JobGUI)) end bindKey("F2","down", ShowGUI)
  14. أنا مسوي الكود بحيث أنك تقدر تتحكم في السلاح الي تبي تعطيه للتيم الي انت فيه + تتحكم في عدد الذخيره طريقة الأستخدام gw مثال مع ذخيره 500 M4 أعطاء سلاح F8 في gw 31 500 ================================= أرقام الأسلحة تلقاها هنا https://wiki.multitheftauto.com/wiki/Weapons
  15. You missed bracket at line 5. This better code. function damageProof(player) local vehicle = getPedOccupiedVehicle(player) if vehicle then local acc = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup("user."..acc, aclGetGroup("Admin")) then setVehicleDamageProof(vehicle, not isVehicleDamageProof(vehicle)) local ss = isVehicleDamageProof(vehicle) and "ON" or "OFF" outputChatBox("damageProof is now "..ss.." !", player, 255, 255, 255) end end end addCommandHandler("damageproof", damageProof)
  16. addCommandHandler("gw", function(player, cmd, id, amount) local Team = getPlayerTeam(player) if Team and id and amount then for i, players in ipairs(getElementsByType("player")) do if Team == getPlayerTeam(players) then giveWeapon(players, tonumber(id), tonumber(amount)) end end end end)
  17. أول شي لا تحط أكثر من مشاركة ورا بعض ثاني شي الرابط لما حطيته كان شغال بس الحين خرب ثالث شي المابات ما تجي في تاب ريسورس و بالاساس أنت ما تحتاجها في ريسورس تقدر تضبط التكتيك من أف1 و تقدر تشغل المابات من أف1 و تقدر تحمل آخر أصدار تكتيك من هنا http://code.google.com/p/mtasa-tactics/downloads/list رابع شي إذا انت ديلوكس فلازم تعرف شغله 777 ان ديلوكس لما ترفع اي مود بالأف تي بي لازم تعطيه تصريح
  18. https://community.multitheftauto.com/index.php?p=resources&s=details&id=383
  19. pieceHit is integer not element. The element is hitEntity. also source is not the weapon ID, it's the weapon that you create it with createWeapon. and the event must be attached to root or the weapon, not localPlayer.
  20. https://forum.multitheftauto.com/viewtopic.php?f=91&t=31891
  21. Copy the code again.
  22. Learn about statements "if" and "else".
  23. -- Server Side -- function teams(teamName, r, g, b) createTeam(tostring(teamName), tonumber(r), tonumber(g), tonumber(b)) end addEvent("createTeam", true) addEventHandler("createTeam", root, teams) -- Client Side -- triggerServerEvent("createTeam", localPlayer, "Pilot", 255, 255, 0)
  24. I don't see IF statement in your code for getElementData, then how "else" will work? this really make no sense.
  25. No, it's impossible.
×
×
  • Create New...