Jump to content

Estevam2d

Members
  • Posts

    178
  • Joined

  • Last visited

Everything posted by Estevam2d

  1. I'm not sure! teamList = { -- you must add some teams here. ["SWAT"] = true, ["Police"] = true, ["Civil"] = false } function checkPlayerInTeam( ) local team = getPlayerTeam( getLocalPlayer() ) if team then if ( teamList[getTeamName( team )] ) then toggleControl ("fire", false) toggleControl ("aim_weapon", false) toggleControl ("vehicle_fire", false) else toggleControl ("fire", true) toggleControl ("aim_weapon", true) toggleControl ("vehicle_fire", true) end end end setTimer(checkPlayerInTeam, 1000, 0 )
  2. Tem sim, só não sei como é o seu sistema de missão para realmente te dar uma resposta correta.
  3. how to make the sound stop individually? Two players start the sound at the same time only one sound will stop when we use the stop command and the sound that I keep is impossible to stop. local url = "http://www.181.fm/winamp.pls?station=181-power&style=mp3&description=Power%20181%20(Top%2040)&file=181-power.pls" sound = {} function playTheSound(x, y, z, vehicle) sound[vehicle] = playSound3D(url, x, y, z) if (isElement(vehicle)) then attachElements(sound[vehicle], vehicle) end end addEvent("playTheSound", true) addEventHandler("playTheSound", getRootElement(), playTheSound) function stopTheSound(vehicle) stopSound(sound[vehicle]) end addEvent("stopTheSound", true) addEventHandler("stopTheSound", getRootElement(), stopTheSound)
  4. Como voce mesmo disse voce é bem novo no mta. Creio eu que voce terá que configurar todo o roteiro de dayz para fixar em um local especifico do mapa. Talvez eu esteja falando bobagens pois meu ramo é RPG. Estude um pouco de .LUA para conseguir seu esperado DayZ e boa sorte !
  5. Verdade. eu iria postar alguns videos mas como estou sem fone, fiquei sem recentemente irei postar umas fotos ali em cima para atualizar e ficar mais informativo.
  6. mtasa://201.75.255.48:22003 Galera, estou aqui para divulgar meu server de rpg brasileiro. Tenho vários trabalhos prontos, mas alguns ainda estão sem funçoes. Fazendeiro: O farm simplesmente tem a função de plantar trigo, basta ir na fazenda localizada em San Fierro perto do mount chiliad e se tornar um fazenderio. Apos, voce terá que comprar sementes para iniciar o plantio. Se voce apertar f11 voce vera uma area amarela no mapa, va ate la e obtenha o tractor pelo cilindro e entre na area amarela. Logo em seguida voce ira ver as plantas crescendo, quando elas estiver prontas para colher com o Harvester ira aparecer uns pontos verdes no radar. Agora passe com o Harverster em cima da planta e elas irão virar trigos no chão, saia do harvester e pegue o trigo sem estar em um veiculo e altomaticamente ganhara o dinheiro pelo trabalho. Esse sistema é parecido com o do server CIT, mas esse é criado por mim mesmo. Policia: Voce se torna um policial em qualquer cidade, Los santos, San Firro ou Las venturas. Voce pode prender bandido usando um cassetete, mas apenas criminosos que estejam com estrela. O pvp é livre entre policiais em ls e em lv, mas nao em SF. Policiais sobem de patente conforme prende bandidos, pode usar armas de shock para mobilizar o bandido e ficar mais fácil prende-los, e tambem pode usar stinger apertando N. Estamos com mais de 12 trabalhos funcionando perfeitamente alem desses que eu coloquei dica. Temos mais sistemas legais, temos turfs, gangs, celular,. A maioria dos scripts foi criado por mim e estou divulgando aqui porque se caso voce goste de rpg la é o lugar certo. Somos novos com essa coisa de server rpg, afinal, exite varios server BR que dizem ser focados em rpg mas sao Br puros. com mods até o queixo, o server tambem tem mods mas para isso usamos um sistema criado por outro scripter e nao eu, mas tive que dar uns ajustes para que funcionace perfeitamente com um server rpg. caso entre no server e queira usar os mods aperte t no jogo e escreva . /carmods. e quando usar o carmods vera que voce devera abaixá-los para poder ativá-los dentro do jogo nome do server é BRASIL MUNDO VIRTUAL, Qual quer duvida entre em contato Stevan.shock esse ai é meus skype. mtasa://201.75.255.48:22003 Caso nao encontre um dia o Server BMV pelo ip Entao va ate alista de procuras de server coloque BMV que sempre voce ira achar. Estamos com vaga na STAFF, mas apenas para os que amam rpg e dão suas vidas por um server bom. Para aqueles com mas intenções esses nao precisamos. Imagens da Fazenda: Tornando-se um fazendeiro Comprando sementes Sementes plantadas Aqui as sementes plantadas ja estão crescendo Colhendo com o Harvester e aqui passando por cima do trigo para ganhar dinheiro.
  7. Got it, I'll do it right now Many thanks again
  8. Tomas was very Thank perfect, Thank you helped me a lot. But I took the == 1, when removed worked. if not string.find(nameTag,"[PMSC]") then function CopKillerer() for k,v in ipairs (getPlayersInTeam (getTeamFromName("Policia Militar"))) do local PAcBagmenos = tonumber ( getElementData ( v, "Prisoes" ) ) if ( PAcBagmenos >= 0 ) and ( PAcBagmenos < 20 ) then local nameTag = getPlayerNametagText ( v ) setTimer(function() setPlayerNametagColor ( v, 10, 118, 240 ) if not string.find(nameTag,"[PMSC]") == 1 then local Job = setPlayerName ( v, "[PMSC]-"..string.gsub(nameTag, "(%[)%d-]","").."" ) else local Job = setPlayerName ( v,string.gsub(nameTag, "(%[)%d-]","")) end end,2000,1) end end end setTimer ( CopKillerer, 1000, 0 )
  9. not appearing this more, I want a PMSC in the tag and not remove all Would check whether a player is already with PMSC the tag and not repeat the event?
  10. The number that Appear next really sumil, but the PMSC station multiplies I want to appear only in so PMSC tag Is there any method to do that does not multiply the PMSC?
  11. It did not work, I'd better leave quiet. Now the [PMSC] tag - is repeating
  12. I did it, but at the end of the tag is [] I want no symbol at the end of tag
  13. This was what gave more certain but was [PM] And I want without it. function CopKillerer() for k,v in ipairs (getPlayersInTeam (getTeamFromName("Policia Militar"))) do local PAcBagmenos = tonumber ( getElementData ( v, "Prisoes" ) ) if ( PAcBagmenos >= 0 ) and ( PAcBagmenos < 20 ) then local nameTag = getPlayerNametagText ( v ) setTimer(function() setPlayerNametagColor ( v, 10, 118, 240 ) local Job = setPlayerName ( v, "[PMSC]-"..string.gsub(nameTag, "([%d-])","-PM").."" ) end,2000,1) end end end setTimer ( CopKillerer, 1000, 0 )
  14. function CopKillerer() for k,v in ipairs (getPlayersInTeam (getTeamFromName("Policia Militar"))) do local PAcBagmenos = tonumber ( getElementData ( v, "Prisoes" ) ) if ( PAcBagmenos >= 0 ) and ( PAcBagmenos < 20 ) then local nameTag = getPlayerNametagText ( v ) query = string.gsub(nameTag, "([%d-])","-here") -- here problem setTimer(function() setPlayerNametagColor ( v, 10, 118, 240 ) local Job = setPlayerName ( v, "[PMSC]-"..query.."" ) end,2000,1) end end end setTimer ( CopKillerer, 1000, 0 ) I could not take the number nor the [] also do not know me handle string.gsub
  15. I already deleted, I thought I had done a lot of crap. I will try again and already send you the script
  16. I am limited with LUA understanding. I tried with what you asked but without results.
  17. I used GetPlayerName but how to check this with the tag [PMSC] and stop adding [PMSC]?
  18. when I use GetPlayerName Text tag my name is appearing [0]. Can anyone help me to withdraw [0] at the end of my tag? -- server function CopKillerer() for k,v in ipairs (getPlayersInTeam (getTeamFromName("Policia Militar"))) do local PAcBagmenos = tonumber ( getElementData ( v, "Prisoes" ) ) if ( PAcBagmenos >= 0 ) and ( PAcBagmenos < 20 ) then local nameTag = getPlayerNametagText ( v ) -- here [0] setTimer(function() setPlayerNametagColor ( v, 10, 118, 240 ) local Job = setPlayerName ( v, "[PMSC]-"..nameTag ) end,2000,1) end end end setTimer ( CopKillerer, 1000, 0 )
  19. I managed to solve removing the SetTimer at the end, so that the vehicles to enter are not saved. , So I can not remember how I did. I think SetTimer leaves the server somewhat sluggish. Also realized I had 2 SetTimer with the same function, then removed one and stopped falling my FPS. If you want I send my modification for you to analyze, poes this script that you did is wonderful.
  20. Yes, with the point system that will display the number of deaths. What I want is to highlight the player who killed other players with a special color when it has killed more players that everyone in the server.
  21. My problem is that all who reach the highest level of kill are yellow in scorebord. just want only the top kill is yellow and not all, and if he loses the title of top kill the player's name ficase red again. function CopKillerer() local var = 0 local HighPlayer = false for k,v in ipairs (getPlayersInTeam (getTeamFromName("Criminoso"))) do local kills = getElementData(v,'kills') if kills then if kills > var then var = kills setPlayerNametagColor ( v, 221, 211, 45 ) setElementData( v, "Occupation", "Criminal", true ) HighPlayer = v end end end return HighPlayer end setTimer ( CopKillerer, 1000, 0 )
  22. The title and the color change of the first list of player, but as others vain up the kill they also change color. I wish only the first player had the color changed, and when the kill it is low simply color it back to be red. --nomeacao de titulo rob function CopKillerer() local var = 0 local HighPlayer = false for k,v in ipairs (getPlayersInTeam (getTeamFromName("Criminoso"))) do setPlayerNametagColor ( source, 150, 25, 25 ) local kills = getElementData(v,'kills') if kills then if kills > var then setPlayerNametagColor ( v, 221, 211, 45 ) var = kills NameJobee = getPlayerName(v,"NameDeJoin1") setTimer(function() local Job = setPlayerName ( v, ""..NameJobee.."-[TopKiller]" ) end,2000,1) end end end return HighPlayer end setTimer ( CopKillerer, 1000, 0 )
  23. Thanks, did everything right and really funcinou. Hug.
  24. I want a tag in the player who has more kill, but especially for him. someone help me? I'm using getElementData (attacker, "kills") in order to find the player that killed more players. function CopKiller (attacker) if attacker and getElementType(attacker) == "player" then theTeam = getPlayerTeam ( attacker ) if getTeamName( theTeam ) == "Criminoso" then if ( attacker ) and ( attacker ~= source ) then aScore = getElementData(attacker, "kills") if getElementData ( attacker, "kills" ) > aScore then -- I do not know if this correct local namee = getPlayerName ( attacker ) setElementData(attacker,"Namecarreg",namee) setPlayerNametagColor ( attacker, 221, 211, 45 ) setTimer(function() local name = setPlayerName ( attacker, ""..namee.."-CopKiller" ) end,2000,1) end end end end end addEventHandler ("onPlayerDamage", getRootElement(), CopKiller)
  25. this script is overloading my server what can be?
×
×
  • Create New...