Jump to content

eoL Shady

Members
  • Posts

    928
  • Joined

  • Last visited

  • Days Won

    63

Everything posted by eoL Shady

  1. crazy i like this
  2. Gibt es etwas, bei dem ich helfen kann?
  3. Ich kann Ihnen mit dem Skript zum Rollenspiel helfen,Schreiben Sie mir in privaten Nachrichten auf dieser Forums-seite
  4. ich kann helfen,Die Antwort auf dieses Thema ist etwas spät, aber wenn es noch gültig ist, können wir uns unterhalten.
  5. Mein Englisch ist vielleicht ein bisschen schlecht, aber jetzt verstehe ich es,Danke.
  6. I just wanted to have an admin login to some interiors, I had no idea how to do this, you helped,In the second question, I wanted only the admin to see the article.. I will look at the code we sent,normally i don't use this code much :=)
  7. I understood your post and I will try this. When I came to the door, this text on the screen was "Press 'F' to Use Door." I have to use this code for only admins to see "hasObjectPermissionTo"
  8. function createTeleportMarker(startX, startY, startZ, endX, endY, endZ, teleportInterior, markerInterior) local marker = createMarker(startX, startY, startZ, "cylinder", 2.0, 255, 255, 255, 0) setElementInterior(marker, markerInterior) teleportDatas[marker] = {startX = startX, startY = startY, startZ = startZ, endX = endX, endY = endY, endZ = endZ, teleportInterior = teleportInterior} table.insert(InteriorMarkers, marker) end addEventHandler("onResourceStart", resourceRoot, function() for _,player in ipairs(getElementsByType("player")) do bindKey(player, "F", "down", teleportPlayer) end addEventHandler("onPlayerJoin", root, function() bindKey(source, "F", "down", teleportPlayer) end ) addEventHandler("onMarkerHit", root, function(hitElement, matchingDimension) if(getElementType(hitElement) == "player") then local isVehicle = getPedOccupiedVehicle(hitElement) if(isVehicle) then return end for i=1,#InteriorMarkers do if(source == InteriorMarkers[i]) then triggerClientEvent(hitElement, "InteriorInfoVisible", hitElement, true) end end end end ) addEventHandler("onMarkerLeave", root, function(leaveElement, matchingDimension) if(getElementType(leaveElement) == "player") then local isVehicle = getPedOccupiedVehicle(leaveElement) if(isVehicle) then return end for i=1,#InteriorMarkers do if(source == InteriorMarkers[i]) then triggerClientEvent(leaveElement, "InteriorInfoVisible", leaveElement, false) end end end end ) function teleportPlayer(player) for i=1,#InteriorMarkers do if(isElementWithinMarker(player, InteriorMarkers[i])) then triggerClientEvent(player, "InteriorInfoVisible", player, false) setElementInterior(player, teleportDatas[InteriorMarkers[i]].teleportInterior) setElementPosition(player, teleportDatas[InteriorMarkers[i]].endX, teleportDatas[InteriorMarkers[i]].endY, teleportDatas[InteriorMarkers[i]].endZ) break end end end forgot to send codes. client : function drawInteriorInfo() if(isInteriorInfoVisible) then dxDrawBorderedText(1.5 * relX, "Press 'F' to Use Door.", screenW/2, 850 * relY, screenW/2, 850 * relY, tocolor(255, 255, 255, 255), 2.2 * relX, "default-bold", "center", "center") end end addEventHandler("onClientRender", root, drawInteriorInfo) only admin login and "Press 'F' to Use Door." Only admins can see this post
  9. hello mta community, I've been dealing with a new script for a few days, but I need some information, I'm waiting for your nice comments for your help on this. I will make some interiors private for admins, only admins will be able to login.
  10. This web page has all the information and ready scripts at your request, you can look and solve it here https://wiki.multitheftauto.com/wiki/EngineReplaceModel
  11. addEventHandler ( "onClientResourceStart", resourceRoot, function () txd = engineLoadTXD ("name.txd") engineImportTXD (txd, 26) -- ID dff = engineLoadDFF ("name.dff") engineReplaceModel (dff, 26) -- ID end ) meta.xml <meta> <script src="client_sc.lua" type="client" /> <file src="name.txd" /> <file src="name.dff" /> </meta>
  12. I am using such code in my own server, I was going to ask the same question, but I solved this question by myself, I hope this code will help him.
  13. hello ,i have an idea about it. @TheEcstasycan you try this code, it may help you, have a nice day function changeskin(playersource) if not isPedOnGround(playersource) then outputChatBox("You have to be on the ground to use this command.",playersource) return end if (getElementModel(playersource) == 12) then setElementModel(playersource,73) --(73 this is the current skin ID) else setElementModel(playersource,12) --(12 this is the skin ID you can change) end end addCommandHandler("changeskin",changeskin) meta.xml: <meta> <info type="script"/> <script src="changeskin.lua" type="server"/> </meta>
  14. Merhaba türk topluluğu, sizlere kendi sunucumu tanıtmak istiyorum, sunucumda birçok özellik vardır sunucuda aktif olduğunuz sürece oyunu seveceksiniz ve oyundan keyif alacaksınız buna imzamı atarım, çünkü TWD modu olarak kurdum TWD deki birçok karakterin skinleri ve arabaları vardır, özellikle bir çok yeni etkinlikler ekledim, sizleride sunucuma bekliyorum,sizlere discord ve mta sunucu ip adresimi paylaşıyorum : Discord : https://discord.gg/DeK2yS44PM Mta Server ip : mtasa://91.134.166.76:22013 - Item Shop (eşya satın alma paneli) - Item Sell System (eşya satış paneli (bu sayede para kazanabilirsiniz.)) - Advanced group system (gelişmiş klan sistemi) - Missions (etkinlikler) - Vehicles of all types (bütün arabalar mevcut) - Smart Zombies (bir kaç zombi sistemi normal/zor) - NPC Bandit Groups (NPC bandit zor modlu zombiler) - CCTV (kamera sistemi, üslerde bulunabiliyor) - Bases (üsler) - Lobby (lobi sistemi bir çok etkinlik vardır) - Derby - Race Mode - all databases available (eski oyuncuları verileri hala elimizde) - old Accounts available - Shop Token (para birimimiz) - Chase Event. (Araba kaçırma etkinliğimiz.) - Special Island Map (gizli ada sistemi) - Rank System (rütbe sistemi) - Optimization VIP Membership (gelişmiş ve özel vip sistemi) - Hunt Event (viplere özel sistem) - The Walking Dead Mods&Skins (%50 TWD modelleri) - +500 Vehicles (500 den fazla araba mevcut) - 2xZombieArea (SF'de gizli bölüm 2 kat zombie yaratıyor ve bunlar zor zombiler) - NameColors(Rank) (rütbene göre renk sistemi) - Interiors(LVPD,LSPD,SFPD etc....) (iç mekanlar mevcuttur içeride özel eşyalar bulabilirsiniz, detaylar discord suncumuz'da)
  15. very nice video, i like it
  16. Mta.Castiel If there is a different issue, please open a new topic, I can help you. good luck
  17. hi @MTA.Castiel, i prepared some code for you, let me know if i could help. local isGodMode = getElementData(source, "godmode.active") if attacker and getElementType(attacker) == "vehicle" and isGodMode and damage_causing == 49 then local player = getVehicleOccupant(attacker) if(player and getElementType(player) == "player") then -- if he is not himself if(player ~= source) then cancelEvent() end end end Try this code.
  18. you can use getTimestamp() function to find previous day and current day this will return instant timestamp in seconds. https://wiki.multitheftauto.com/wiki/GetTimestamp Since 1 day is 86400 seconds, you will subtract this from the present addCommandHandler("times", function() local time = getTimestamp() local beforeDay = time - 86400 outputDebugString("before day:"..beforeDay) outputDebugString("now: "..time) end) this way you can access previous time and current time i'm not sure if this is what you want
  19. dude i need to see what you want to do and your codes tell me this properly, i can help
  20. If there is another topic, you can open a new topic, I am ready to help 24/7. fun games
  21. hi ๖ۣۜζ͜͡RapGod, i want to help you with this i will give you some code you should try this. function toggleWindow() if(guiGetVisible(panelWindow) == false) then guiSetVisible(panelWindow, true) showCursor(true) else guiSetVisible(panelWindow, false) showCursor(false) end end bindKey("o", "down", toggleWindow) You can check if the panel is visible with guiGetVisible() no variable needed
  22. I'm too late to write this message but happy birthday anyway I will stay more interactive with the mta forum site from now on.
  23. i tried the server, and it's a nice work, you can rate it.
  24. I recommend it, it's a really nice project, llYAMA Well done.
×
×
  • Create New...