Jump to content

Search the Community

Showing results for tags 'script'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

  1. Somehow i can make this possible? When a player connect, then he have to wait the end of download, then he can use the fr gui. I want make fr gui usable when player download the mods. Sorry for my bad english..
  2. Olá, eu estou me interessando bastante por script e a melhor forma que achei por agora de aprender foi vendo scripts e tentando entender como eles funcionam e editando. Pessoal, eu e meu amigo @KingBC estamos editando um script de taxi convertendo ele pra uber. Usamos o comando /uber para que o player possa chamar. O problema é que fizemos algumas alterações e não estamos conseguindo ver onde está o erro. Alguém pode ajudar ??? Já criamos o time Uber, e mesmo assim não funcionou. Não sei se tem haver com grupo na ACL, mas creio que não. Script: **Não tiramos os créditos. Não somos os criadores, estamos apenas editando e aprendendo. Já criamos scripts mais simples e ate mesmo alguns mais complexo com ajuda de integrantes aqui do Fórum e agora queremos nos aprofundar ainda mais. -- by manawydan taxi_system lado = server local PrecoTaxi = "1000" local BlipsTaxi = {} addEventHandler("onResourceStart",getResourceRootElement(getThisResource()), function() if not TimeTaxi then TimeTaxi = createTeam("Uber",20,100,20) end end) function PedirTaxi(thePlayer) if (getElementData(thePlayer,"TaxiClient")) then return end --else if (getPlayerMoney(thePlayer) >= tonumber(PrecoTaxi)) then setElementData(thePlayer,"TaxiClient",true) BlipsTaxi[thePlayer] = createBlipAttachedTo(thePlayer,0,2,0,0,250,210) JogadoresTaxistaTabela(thePlayer) outputChatBox("[Uber]: Seu Uber logo chegara, por favor aguarde.",thePlayer) end end addCommandHandler("uber",PedirTaxi) function JogadoresTaxistaTabela(Player) local Jogadores = getElementsByType("player") for _,Jogad in ipairs(Jogadores) do if (getElementData(Jogad,"Uber")) and (getElementData(Jogad,"TaxistaStat") == vazio) and getPlayerTeam(Jogad) == getTeamFromName("Uber") then local NomeTaxiClient = getPlayerName(Player) outputChatBox("Uber solicitado por: "..NomeTaxiClient,Jogad) end end end function TaxiSystemEntrarNoTaxi(Carro,assento,jacked) if not (getElementModel(Carro) == 420) then return end if not (getElementData(source,"TaxiClient")) then return end if not (assento == 0) then local Taxista = getVehicleController(Carro) if Taxista and getElementData(Taxista,"Uber") and (getPlayerTeam(Taxista) == getTeamFromName("Uber")) then destroyElement(BlipsTaxi[source]) setElementData(Taxista,"TaxistaStat",ocupado) end end end addEventHandler ("onPlayerVehicleEnter",getRootElement(),TaxiSystemEntrarNoTaxi) -- function TaxiSystemSairTaxi(Carro,assento,jacked) if not (getElementModel(Carro) == 420) then return end if not (getElementData(source,"TaxiClient")) then return end if not (assento == 0) then local Taxista = getVehicleController(Carro) if Taxista and getElementData(Taxista,"Uber") and (getPlayerTeam(Taxista) == getTeamFromName("Uber")) then removeElementData(source,"TaxiClient") setElementData(Taxista,"TaxistaStat",vazio) takePlayerMoney(source,tonumber(PrecoTaxi)) givePlayerMoney(Taxista,tonumber(PrecoTaxi)) end end end addEventHandler ("onPlayerVehicleExit",getRootElement(),TaxiSystemSairTaxi) function TaxistaSer(Carro,assento,jacked) if not (getElementModel(Carro) == 420) then return end if (getElementData(source,"Uber")) then return end --not if (getPlayerTeam(source) == getTeamFromName("Uber")) then if (assento == 0) then setElementData(source,"Uber",true) setElementData(source,"TaxistaStat",vazio) outputChatBox("[Uber]: Você agora é um Uber. Fique atento para não perder clientes!",source) end end end addEventHandler ("onPlayerVehicleEnter",getRootElement(),TaxistaSer) Obrigado!
  3. Opa galera! Blz? Esses dias estava com dúvidas sobre como criar algum script que fosse de taxi/uber para players. Acabou que achei um que era exatamente como eu queria. Mas esse tem algum problema que não consegui encontrar que não permite funcionar. Se alguém puder dar uma força, vai ajudar MUITO! Server.lua -- by manawydan taxi_system lado = server local PrecoTaxi = "50" local BlipsTaxi = {} addEventHandler("onResourceStart",getResourceRootElement(getThisResource()), function() if not TimeTaxi then TimeTaxi = createTeam("Taxistas",20,100,20) end end) function PedirTaxi(thePlayer) if (getElementData(thePlayer,"TaxiClient")) then return end --else if (getPlayerMoney(thePlayer) >= tonumber(PrecoTaxi)) then setElementData(thePlayer,"TaxiClient",true) BlipsTaxi[thePlayer] = createBlipAttachedTo(thePlayer,0,2,0,0,250,210) JogadoresTaxistaTabela(thePlayer) outputChatBox("[Taxi]: Taxi logo chegara, por favor aguarde",thePlayer) end end addCommandHandler("taxi",PedirTaxi) function JogadoresTaxistaTabela(Player) local Jogadores = getElementsByType("player") for _,Jogad in ipairs(Jogadores) do if (getElementData(Jogad,"Taxista")) and (getElementData(Jogad,"TaxistaStat") == vazio) and getPlayerTeam(Jogad) == getTeamFromName("Taxistas") then local NomeTaxiClient = getPlayerName(Player) outputChatBox("Taxi solicitado por: "..NomeTaxiClient,Jogad) end end end function TaxiSystemEntrarNoTaxi(Carro,assento,jacked) if not (getElementModel(Carro) == 420) then return end if not (getElementData(source,"TaxiClient")) then return end if not (assento == 0) then local Taxista = getVehicleController(Carro) if Taxista and getElementData(Taxista,"Taxista") and (getPlayerTeam(Taxista) == getTeamFromName("Taxistas")) then destroyElement(BlipsTaxi[source]) setElementData(Taxista,"TaxistaStat",ocupado) end end end addEventHandler ("onPlayerVehicleEnter",getRootElement(),TaxiSystemEntrarNoTaxi) -- function TaxiSystemSairTaxi(Carro,assento,jacked) if not (getElementModel(Carro) == 420) then return end if not (getElementData(source,"TaxiClient")) then return end if not (assento == 0) then local Taxista = getVehicleController(Carro) if Taxista and getElementData(Taxista,"Taxista") and (getPlayerTeam(Taxista) == getTeamFromName("Taxistas")) then removeElementData(source,"TaxiClient") setElementData(Taxista,"TaxistaStat",vazio) takePlayerMoney(source,tonumber(PrecoTaxi)) givePlayerMoney(Taxista,tonumber(PrecoTaxi)) end end end addEventHandler ("onPlayerVehicleExit",getRootElement(),TaxiSystemSairTaxi) function TaxistaSer(Carro,assento,jacked) if not (getElementModel(Carro) == 420) then return end if (getElementData(source,"Taxista")) then return end --not if (getPlayerTeam(source) == getTeamFromName("Taxistas")) then if (assento == 0) then setElementData(source,"Taxista",true) setElementData(source,"TaxistaStat",vazio) outputChatBox("[Taxi]: Você agora é um taxista, fique atento para não perder cliente",source) end end end addEventHandler ("onPlayerVehicleEnter",getRootElement(),TaxistaSer)
  4. I wanted to create a taxi/uber job that the passenger/player (not NPC) would be charged after getting off the vehicle. How can I do this?
  5. Pessoal, seguinte, eu meu amigo @hawkbr estamos tentando criar um sistema de mecânico, mas queríamos automatizar a cobrança do valor enviando uma mensagem para o player e quando ele aceitar por exemplo: /aceitar . O valor cobrado seria debitado do proprietário do veículo. Alguém pode nos ajudar?
  6. Pessoal estou tentando achar algum script de uber/taxi ou implementar algum código que vai funcionar com os players que serão cobrados pela viagem do uber/taxi apenas quando descerem do carro. É possível?
  7. I attached a song to my car, but when i'll go far away from car, the music starts from the beginning... s: how to fix this?
  8. client: function rtwjhrt() if isElement(ss) then stopSound(ss) return end local car = getPedOccupiedVehicle ( localPlayer ) local gettext = guiGetText ( GUIEditor.edit[1] ) local x, y, z = getElementPosition( car ) local ss = playSound3D( 'asd.mp3', x, y, z ) setSoundMaxDistance( ss, 85 ) attachElements(ss,car) end addEvent("asd123asd456",true) addEventHandler("asd123asd456",root,rtwjhrt) server: function trig() triggerClientEvent(root,"asd123asd456",root) end addEvent( "asjdlaj", true ) addEventHandler( "asjdlaj", root, trig ) Why not hear the sound another players?
  9. If i play a music from youtube with fetchRemote, the .mp3 downloaded it somewhere?
  10. I want create a dxdraw rectangle and text on the map. But how to make this possible?
  11. Servidor Brasil Vida Top (BVT) precisando de scripter de nível médio/alto ou que saiba o básico sobre programação em lua voltado para o MTA. Procurar por Pedrin ou Leonardo. Contato: VIA MSG NO FORUM. TS3: bvt.ts3sport.com
  12. Hello there, I am with you with LVDM gamemode. It's a Deathmatch-like script. I've left MTA for a couple months now so it has its missing things, not technically though, everything works fine with zero errors. I'm talking about the ideal part, such as, usage of money is limited, the ways to earn money is also. If you could add some features into it you'll be fine, I guess. About the code, it's not really "clean" as it was not the plan to publish it in the first place. But once you get used to it, you'll get the mechanism and make changes very easily. REQUIREMENTS -A MySQL server -A MTA server (obviously) -Changes in [Files]\[sacrum]\database\database.lua INSTALLATION -First things first, make sure you make your changes in mtaserver.conf I am providing and then add it on your server. -Grab a MySQL server and install [Files]\[sacrum]\lvdm_core\core.sql -Put your MySQL details into [Files]\[sacrum]\database\database.lua -You might wanna change [Files]\[sacrum]\lvdm_helpmanager\helpmanager_list.lua ABOUT I've started the project more than 1 year ago, with hope to enjoy it with some friends as we are more used to Deathmatches, not as in Race but with guns. Completed the gamemode and then I got busy with work so it went downhill real quick. It has its potentials if you take care of the server and do what needs to be done. GAMEMODE -Gameplay: There are 7 classes in the gamemode, selected after you register. Each and every class has its own ability which can be activated by the player. For instance, a player in sniper class can go stealth mode and gain invisibility. Weapons are also given by the player's class. Although you can get more weapons after you kill a player and collecting their weapons. Of course, there is a weapon list and you need to add your desired weapons on there to be able to collect them. You can organize your list at Emmet's place. (the brown colt45 icon) -Bases: There are a few gang bases which are capturable by gangs. So that the competetion goes in right direction. A base gives you opportunity to buy weapons inside, be more secure, gain loot every hour. Loot can only be collected by the owner of the clan. -Making Money: Missions; Black Export: Find the wanted vehicle and deliver it to the truck blip. Assassinations: Kill the wanted player., Crack the safe: Find the safe's number to get all the money in it ('$' blip). Deathmatches. Hourly deathmatches. Get money and exp for killing ('D' blip). -Abilities: Abilities are passive buffs additionally selected by the player when reached to certain level. You can choose/manage your abilities at 'Z' blip. Every column on the abilities list needs a certain level limit to unlock. -Housing: You can buy houses around the map and spawn in them. To toggle spawn blips press 'o'. NOTES -You can edit/change the gamemode. -Do not delete ["Changelog"] [Files]\[sacrum]\lvdm_helpmanager\helpmanager_list.lua SCREENSHOTS Download link: https://mega.nz/#!Y4hVnThS!9ewKBvY6WdAQWAD3WoaEAmHOLJz03SJE_gjnJhKZ3ok
  13. vas1 = createObject ( 3529, -2112.55103, -249.87376, 35.32031, 0, 0, 0 ) function repairClickedVehicle( button, state, player ) if button == "left" and state == "down" then if getElementType( source ) == "object" then destroyElement(vas1) end end end addEventHandler( "onElementClicked", getRootElement( ), repairClickedVehicle ) This working fine... but when i reconnect, the object appear again.. how to fix this?
  14. Guys, I have a problem with my login panel. I set to play a song but the wind is still in the background. Help me
  15. i added this line to my script: takeWeapon( source, 38, 99999 ) buuut, does not working.. how to fix this?
  16. Hello there scripters, Im in a secret project of starting officially new and most popular idea In mta me and my friends started this project I dont want to say the name of it but it needs such a proffesional scriptors and 2 staff's which is need to be trusted and not paid at all, but the scriptors will be [aid and we need to discuss how much depends on the scriptors and on the script itself and on us, so imma tell some of what it indicates : - Systems ( alot of kinds ) - Custom gui - And much more Note: the idea will be explained to the scripter and tell him what to script, and this thread will be on until 5/26/2018. After this time done ill contact who posted in this thread, so when you tell me to contact you I WONT until this time done. bye and thanks we need atleast 5 scriptors tho c:
  17. this is my code: function onQuit(thePlayer) for i,v in pairs(getElementsByType("vehicle",resourceRoot)) do if getElementData(v,"oveie") == getPlayerName(thePlayer) then destroyElement(v) end end end addEventHandler ( "onPlayerQuit", root, onQuit ) but this does not working.. why? how to fix it?
  18. Hi guys, We working a new roleplay server project. We have some ideas for this server but we do not have a scripter. Someone who want to help us send private message. Money is not important
  19. Hello guys! I have a Ped on serverside, and a Panel on clientside. How can I open my panel on serverside just for the localplayer?
  20. I want create a custom scoreboard.. But, how to add players to it with rectangle, and dxdrawtext(s), and when there are xy players, how to make scrollable?? Sorry for my bad english.. :c
  21. Hello! I'm trying to figure out how to create the same system. What should I use? I think that it's obvious that it's changing the texture only, not the model. I have read about shader, but didn't quite understood. Here's the video what I want to get: https://www.youtube.com/watch?v=jPDYwPUhL6c
  22. I want create a script, which play a sound, when a player shot another player head. But the sound play for killed player and localplayer too. How to make this?
  23. I want create a bank-system. But i don't know, how to begin the script. Can i make it possible this with setElementData, and getElementDatas? sorry for my bad english
  24. I want create a script, which tp a player to me, and teleport me to a player, like in admin panel, just with command. How to make this? For example: /tpto playername , and /tpme playername. And when i teleport a player to me, the player get out from vehicle
  25. I want create a script, which creates a 3d text with a cmd. For example, when i type "/word asd" then this make a 3d text the player position "#playername : asd", then after elapse 3 hours, the text will hide. How to make this?
×
×
  • Create New...