Jump to content

Search the Community

Showing results for tags 'team'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • 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


Last Updated

  • Start


Filter by number of...


  • Start



About Me

Member Title





  1. Hello i am here to sell my clan system above are the images of this scripts if you're interested pm me here or at discord : FORCE#9038
  2. How to set dxDraw to the back of the screen?
  3. Good afternoon team, excuse me, my question is How can I create Teams for the next level system? example for rank 0 to rank 10, beginner, etc, i thank you in advance. addEventHandler("onElementDataChange",root, function() if getElementType(source) == "player" then local zombiekills = getAccountData(getPlayerAccount(source) ,"Zombie kills") or 0 if (zombiekills >= 0) and (zombiekills <= 10) then setElementData(source,"Rango","Rank/1.png") elseif (zombiekills >= 11) and (zombiekills <= 99) then setElementData(source,"Rango","Rank/2.png") elseif (zombiekills >= 100) and (zombiekills <= 299) then setElementData(source,"Rango","Rank/3.png") elseif (zombiekills >= 300) and (zombiekills <= 499) then setElementData(source,"Rango","Rank/4.png") elseif (zombiekills >= 500) and (zombiekills <= 699) then setElementData(source,"Rango","Rank/5.png") elseif (zombiekills >= 700) and (zombiekills <= 1299) then setElementData(source,"Rango","Rank/6.png") elseif (zombiekills >= 1300) and (zombiekills <= 1699) then setElementData(source,"Rango","Rank/7.png") elseif (zombiekills >= 1700) and (zombiekills <= 2099) then setElementData(source,"Rango","Rank/8.png") elseif (zombiekills >= 2100) and (zombiekills <= 4699) then setElementData(source,"Rango","Rank/9.png") elseif (zombiekills >= 4700) and (zombiekills <= 5399) then setElementData(source,"Rango","Rank/10.png") elseif (zombiekills >= 5400) and (zombiekills <= 6399) then setElementData(source,"Rango","Rank/11.png") elseif (zombiekills >= 6400) and (zombiekills <= 7399) then setElementData(source,"Rango","Rank/12.png") elseif (zombiekills >= 7400) and (zombiekills <= 8399) then setElementData(source,"Rango","Rank/13.png") elseif (zombiekills >= 8400) and (zombiekills <= 9399) then setElementData(source,"Rango","Rank/14.png") elseif (zombiekills >= 9400) and (zombiekills <= 10399) then setElementData(source,"Rango","Rank/15.png") elseif (zombiekills >= 10400) and (zombiekills <= 11399) then setElementData(source,"Rango","Rank/16.png") elseif (zombiekills >= 11400) and (zombiekills <= 13399) then setElementData(source,"Rango","Rank/17.png") elseif (zombiekills >= 13400) and (zombiekills <= 14399) then setElementData(source,"Rango","Rank/18.png") elseif (zombiekills >= 14400) and (zombiekills <= 15399) then setElementData(source,"Rango","Rank/19.png") elseif (zombiekills >= 15400) and (zombiekills <= 16399) then setElementData(source,"Rango","Rank/20.png") elseif (zombiekills >= 16400) and (zombiekills <= 17399) then setElementData(source,"Rango","Rank/21.png") elseif (zombiekills >= 17400) and (zombiekills <= 18399) then setElementData(source,"Rango","Rank/22.png") elseif (zombiekills >= 18400) and (zombiekills <= 18999) then setElementData(source,"Rango","Rank/23.png") elseif (zombiekills >= 19400) and (zombiekills <= 20399) then setElementData(source,"Rango","Rank/24.png") elseif (zombiekills >= 20400) and (zombiekills <= 20999) then setElementData(source,"Rango","Rank/25.png") elseif (zombiekills >= 21000) and (zombiekills <= 22999) then setElementData(source,"Rango","Rank/26.png") elseif (zombiekills >= 23000) and (zombiekills <= 24999) then setElementData(source,"Rango","Rank/27.png") elseif (zombiekills >= 25000) and (zombiekills <= 26999) then setElementData(source,"Rango","Rank/28.png") elseif (zombiekills >= 27000) and (zombiekills <= 28999) then setElementData(source,"Rango","Rank/29.png") elseif (zombiekills >= 29000) and (zombiekills <= 31999) then setElementData(source,"Rango","Rank/30.png") elseif (zombiekills >= 32000) and (zombiekills <= 36999) then setElementData(source,"Rango","Rank/31.png") elseif (zombiekills >= 37000) and (zombiekills <= 41999) then setElementData(source,"Rango","Rank/32.png") elseif (zombiekills >= 42000) and (zombiekills <= 46999) then setElementData(source,"Rango","Rank/33.png") elseif (zombiekills >= 47000) and (zombiekills <= 49999) then setElementData(source,"Rango","Rank/34.png") elseif (zombiekills >= 50000) and (zombiekills <= 64999) then setElementData(source,"Rango","Rank/35.png") elseif (zombiekills >= 65000) and (zombiekills <= 70999) then setElementData(source,"Rango","Rank/36.png") elseif (zombiekills >= 71000) and (zombiekills <= 76999) then setElementData(source,"Rango","Rank/37.png") elseif (zombiekills >= 77000) and (zombiekills <= 82999) then setElementData(source,"Rango","Rank/38.png") elseif (zombiekills >= 83000) and (zombiekills <= 88999) then setElementData(source,"Rango","Rank/39.png") elseif (zombiekills >= 89000) and (zombiekills <= 99899) then setElementData(source,"Rango","Rank/40.png") elseif (zombiekills >= 99900) and (zombiekills <= 99999) then setElementData(source,"Rango","Rank/41.png") elseif (zombiekills >= 100000) and (zombiekills <= 119999) then setElementData(source,"Rango","Rank/42.png") elseif (zombiekills >= 120000) and (zombiekills <= 149999) then setElementData(source,"Rango","Rank/43.png") elseif (zombiekills >= 150000) and (zombiekills <= 179999) then setElementData(source,"Rango","Rank/44.png") elseif (zombiekills >= 180000) and (zombiekills <= 199999) then setElementData(source,"Rango","Rank/45.png") elseif (zombiekills >= 200000) and (zombiekills <= 219999) then setElementData(source,"Rango","Rank/46.png") elseif (zombiekills >= 220000) and (zombiekills <= 239999) then setElementData(source,"Rango","Rank/47.png") elseif (zombiekills >= 240000) and (zombiekills <= 259999) then setElementData(source,"Rango","Rank/48.png") elseif (zombiekills >= 260000) and (zombiekills <= 289999) then setElementData(source,"Rango","Rank/49.png") elseif (zombiekills >= 290000) and (zombiekills <= 359999) then setElementData(source,"Rango","Rank/50.png") elseif (zombiekills >= 360000) and (zombiekills <= 10000000) then setElementData(source,"Rango","Rank/51.png") end end end )
  4. My goal is that when the player clicks on the first button, the function for this button is to change for each player in his team, but unfortunately the function changes only for the person who clicked. --client side local Button1 = guiCreateButton(--There are no valid arguments ) addEventHandler("onClientGUIClick", Button1, OnTeamPlayerClickLVL1) function OnTeamPlayerClickLVL1() for i, v in pairs(getPlayersInTeam(getPlayerTeam(getLocalPlayer()))) do outputChatBox("U bought level 1 for your TEAM ^^", 0, 255, 0) removeEventHandler("onClientGUIClick", Button1, OnTeamPlayerClickLVL1) addEventHandler("onClientGUIClick", Button1, OnTeamPlayerClickLVL2) end end function OnTeamPlayerClickLVL2() for i, v in pairs(getPlayersInTeam(getPlayerTeam(getLocalPlayer()))) do outputChatBox("U bought level 2 for your TEAM ^^", 0, 255, 0) removeEventHandler("onClientGUIClick", Button1, OnTeamPlayerClickLVL2) end end -- server side RED = createTeam("Red Team", 255, 0, 0) BLUE = createTeam("Blue Team", 0, 0, 255) Here is my code that works only for ONE person and I want for the current team
  5. Okay, so I would like to give M4 to each person from the "Red" team, and to every player from the "Blue" team I would like to give Ak47, How can I do it? -- server side red = createTeam("Red team", 255, 0, 0) blue = createTeam("Blue team", 0, 255, 0) giveWeapon("red team????", 31, 9999) giveWeapon("blue team????", 30, 9999) Something like this is on my mind but I do not know what to put in the "string" red team and blue team...
  6. I have another question if it can be done so that people from the red team can shoot other players in the head (in the sense that it would kill other players) -- server side red = createTeam("RED", 255, 0 ,0) blue = createTeam("BLUE" , 0, 255, 0) -- client side function RedTeamHeadShotDamage(player, valuedamage, bodypart) if bodypart==9 then killPed(getLocalPlayer()) else cancelEvent() end end function SetRedTeamHeadShotOnly() local redPlayers = getTeamFromName("BLUE") local teamRed = getPlayersInTeam(redPlayers) for i, v in pairs(teamRed) do addEventHandler("onClientPlayerDamage", v, RedTeamHeadShotDamage) end end SetRedTeamHeadShotOnly() Something I mean, can it work?
  7. This is my first post, so forgive me if i make any mistakes! I'm creating a Police Script where i get to a random Ped and type a command(i'll change it to bind later) and it creates a Marker attached(0,1,0) to the Source that if it touches the Ped will activate a function that makes him follow the Marker. And this is the function so far: Everything is Server-Side (because i suck at Client-Side) function func1(p) local x,y,z = getElementPosition(p) Marker = createMarker(x, y, z, "cylinder", 1, 255, 0, 0, 170) attachElements(Marker,p, 0,1,0) addEventHandler("onMarkerHit", Marker, func2) addEventHandler("onMarkerHit", Marker, func3) end addCommandHandler("render", func1) function fun2(p,_) if getElementType ( p ) == "ped" then x2,y2,z2 = getElementPosition(Marker) x1,y1,z1 = getElementPosition(p) rx,ry,rz = findRotation3D(x1,y1,z1,x2,y2,z2) setElementRotation(p, rx+0,ry+0,rz+0) setPedAnimation(p, "ped", "walk_player") setTimer(function() bunda(p,_) end, 999, 1) end end And then here's the devil: function func3(p, ped) if not getElementType ( ped ) == "ped" then return end --else return end --carro = getElementType ( carro ) carro = getElementsByType("vehicle") --psha = getElementColShape(p) --elements = getElementsWithinColShape(psha) --if elements == carro == "vehicle" then --local vee = getElementsByType(carro) -- and getElementType ( carro ) == "vehicle" then --if getElementType(p2) == "player" then --local vei = getPedOccupiedVehicle(p2) --addEventHandler("onColShapeHit", psha, function(hit) --if carro == "vehicle" then addEventHandler("onVehicleEnter", root, function() setTimer(function() setPedAnimation(ped, false) vei = getPedOccupiedVehicle(p) warpPedIntoVehicle ( ped, root, math.random(2,4) ) end, 999, 1) timers = getTimers ( 1000) for timerKey, timerValue in ipairs(timers) do killTimer ( timerValue ) end destroyElement(Marker) --end end) end --end --end I tried everything my :~ty skills allowed me to and now i'm out of ideas on how to solve this without Client-Side. The idea is when the Ped approaches the car, it chooses between seats 2 or 3 and enters the car, but as i'm not creating the car in the script, instead you should be able to spawn any vehicle and as a Cop you could arrest people and take them to the car. Sorry for the ugly-ass code. EDIT: Making the Ped follow the Player and when the Player enters a Vehicle the Ped is warped into the back seat is fine too.
  8. I created a scoreboard system, but when i make a team, the team does not show in scoreboard.. how can i add this after playerlist?
  9. Buenas noches!!, Alguien sabe si se puede de alguna manera tener varios "Skins de autos" y que sea visibles por todos¿? Otra pregunta es si esta función se puede hacer para un team nada mas, pero que los demas la puedan ver. Y la ultima si los coches que no tengan paintjob se pueden aplicar mas de 4, y de que manera, si alguno sabe aunque sea uno me seria de gran ayuda, gracias! function CambiarSkin1() txd = engineLoadTXD("mod.txd", 411) engineImportTXD(txd, 411) dff = engineLoadDFF("mod.dff", 411) engineReplaceModel(dff, 411) end addEventHandler("onClientResourceStart", resourceRoot, CambiarSkin1) --Hay alguna forma de cambiarlo para que solo un team se le aplique?
  10. ¡Te necesitamos! Somos un equipo experimentado que se dispone a reclutar ayudantes para un nuevo proyecto: Servidor MTA. Tenemos mucha experiencia tanto en MTA como en otros servidores valve, World of Warcraft, Unity 3D, Unreal Engine, entre otros. Si tienes ganas de unirte a nuestro equipo, te invito a seguir leyendo, y luego hablar conmigo por privado. Lo que estamos buscando: Equipo de GMs (admins) Equipo de Scripters de bajo nivel (No hace falta que seas experto, ya que los scripts complejos los haremos nosotros) Equipo de moderadores [GMs, admins] Equipo de Soporte [GM] Equipo de Publicidad ( Youtuber, Blogger, etc..) Equipo de Eventos Todos los miembros dentro de nuestros equipos tendrán su propia cuenta de GM (admin). Ten en cuenta que no estamos jugando, somos gente seria y bien preparada para este tipo de cosas. Si te interesa, envíame un mensaje privado a: https://www.facebook.com/halendor.nathrezhim.9 Comentando en qué tipo de equipo te gustaría entrar. Que tengan un buen día.
  11. Existe alguma forma de privar um comando caso rival estiver perto? agora caso ele estiver numa distancia de 300 Metros eu conseguir utilizar o comando tranquilamente.
  12. #DaNiLiN

    Button Team

    I have a panel, but I wanted to click on the "Example" button to drop the "Example" team and be born on the "example" basis when dying, what function do I need?
  13. Gente estou com uma dúvida, será que no mta tem como fazer uma função para puxar todos EX: Sou da Team A e quero puxar a todos da minha Team de uma vez só usando o comando /Puxartodos
  14. function check(source) local recipient = getPlayerFromName(source) local accName = getAccountName ( getPlayerAccount ( recipient ) ) -- get his account name local r,g,b if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Forever" ) ) then setPlayerTeam ( recipient, FO ) r, g, b = getTeamColor ( FO ) setPlayerNametagColor ( recipient, r, g, b ) end end addEventHandler ( "onPlayerLogin", getRootElement(), check ) ================================================================ i made a lil script to add clans but it seems that when u reconnect or login again , u are removed from player, the clan members are added into an ACL group marked Forever , i made this piece of code, to add player back into team if the player is in the acl group on login. but it doesnt work. I am not really good at this but , i dont know how to get player from server side , can someone pls explain to me what is wrong in this piece of code and also tell me how to get player from server side thanks
  15. Como eu adiciono varias Team Com ACL ? sem bugar
  16. Hello out there, The problem is it doesn't adds players who joined the arena into the arena based teams. This is how it should work: when the player joins hunter arena, 3 teams named as 'Militants', 'Insurgents' and 'Invaders' are created. I want it to be like all the players who joins the hunter arena will be entered into random team from those 3 teams created on event startup. Non participators must stay in their own clan without any changes. local newTeam1 local newTeam2 local newTeam3 local originalteam -- to store the team of player before joining the arena addEvent(getResourceName(getThisResource())..": addPlayerHunter", true) addEventHandler(getResourceName(getThisResource())..": addPlayerHunter", root, function () if (getPedOccupiedVehicle(source)) then return triggerClientEvent(source, getResourceName(getThisResource())..": textScreen", root, "Get out of your current vehicle to get into GM!") elseif (getElementData(source, "MultiGM") == "Hydra") then removeElementData(source, "MultiGM") end --local pX, pY, pZ = unpack(spawnarena2Positions[math.random(#spawnarena2Positions)]) local mX, mY, mZ = unpack(spawnarena2Positionsmilitants[math.random(#spawnarena2Positionsmilitants)]) local inX, inY, inZ = unpack(spawnarena2Positionsinvaders[math.random(#spawnarena2Positionsinvaders)]) local isX, isY, isZ = unpack(spawnarena2Positionsinsurgents[math.random(#spawnarena2Positionsinsurgents)]) originalteam = getPlayerTeam (source) -- store the team of player before he joined the arena if (originalteam ) then --if he has team else originalteam = nil --if he dont have a team previously then set it as nil end newTeam1 = createTeam ( "Militants", 0, 255, 0 ) -- create a new team with the specified name newTeam2 = createTeam ( "Invaders", 100, 0, 20) newTeam3 = createTeam ( "Insurgents", 50, 100, 50) local teams = {newTeam1,newTeam2,newTeam3} for _, Jogador in ipairs(getElementsByType("player")) do -- THERE MIGHT BE A MISTAKE HERE HUH?. local randomteam = teams[math.random(#teams)] setPlayerTeam(source, randomteam) end local activeteam = getPlayerTeam (source) -- joined team if (activeteam) then if activeteam=="Militants" then setElementPosition(source, mX, mY, mZ) elseif activeteam=="Invaders" then setElementPosition(source, inX, inY, inZ) elseif activeteam=="Insurgents"then setElementPosition(source, isX, isY, isZ) else end end triggerClientEvent(source, getResourceName(getThisResource())..": textScreen", root, "You entered the Hunter Arena. To exit just type /exitarena") setElementData(source, "MultiGM", "Hunter") --setElementPosition(source, pX, pY, pZ) --setElementDimension(source, 2) end )
  17. Olá tudo bem? Bom estou fazendo um script de rouba o banco, mas queria que o roubo so acontecesse se tive 5 PM on, como passo para verificar quantos players tem do time PM? Se tive 5 PM on o roubo vai continua, agora se não tive o player não vai pode continua o roubo.
  18. dex.

    [Help] Team

    I have little problem with team. Code: function team ( source) local playerTeam = getPlayerTeam ( source ) local playeraccount = getPlayerAccount ( source ) if getAccountData (playeraccount,"Police", source) then outputChatBox ("text.", thePlayer, 255,0,0 ) cancelEvent(MoveGate) end end addEventHandler("onMarkerHit", marker, team) I want to make that like this, if Police hits marker, then gate dosent move and he says text. But other players can enter
  19. Hey Guys this is my first ever Map. And its a base for any team. It contains numerous vehicles and have some powerful vehicle. If you find somting wrong in it please comment bellow. If you want this Map you can Ask me on discord Layoffin#9724 or you can tag me on the official discord server. check out photoes here http://imgur.com/gallery/oFPY9
  20. Buenas noches!!, Alguien sabe si se puede de alguna manera tener varios "Skins de autos" y que sea visibles por todos¿? Otra pregunta es si esta función se puede hacer para un team nada mas, pero que los demas la puedan ver. Y la ultima si los coches que no tengan paintjob se pueden aplicar mas de 4, y de que manera, si alguno sabe aunque sea uno me seria de gran ayuda, gracias! function CambiarSkin1() txd = engineLoadTXD("mod.txd", 411) engineImportTXD(txd, 411) dff = engineLoadDFF("mod.dff", 411) engineReplaceModel(dff, 411) end addEventHandler("onClientResourceStart", resourceRoot, CambiarSkin1) --Hay alguna forma de cambiarlo para que solo un team se le aplique?
  21. If the remaining players have the same team, I want to end the game. Can you help me? This code only one player send to winner element. if #game[gameID].players <= 1 then endGame(gameID, game[gameID].players[1]) end I wrote this code, but I'm not sure. if game[gameID].players and getElementData(game[gameID].players, "gang") then endGame(gameID, game[gameID].players) end Thanks.
  22. Español Hola necesito Ayuda de como hacer un script para poner comandos a los team yo tengo un server de Zombies el problema que no se como hacer el sccript Ejemplo: yo quiero poner el comandos /chaleco a el Team Militar cuando un jugador nponga el comandos aparecera con el 50 de vida otra cosa que seria es /dsawn es poner la arma uzi recortada o tec-9 en doble que uno pueda tener algunas de esas armas en la mano del jugador si con otra cosa podrian ayudarme es como poner jetpack a el team por favor expliquenme me pueden dejar la funcion en sus comentarios por favor para mi seria de un agrado English Hi, I need help with how to make a script to put commands to the team. I have a Zombies server. The problem is that I do not know how to do the sccript. Example: I want to put the commands /armor to the Military Team when a player sends the commands. The 50th of another serious thing is /dsawn is to put the uzi clipped weapon or tec-9 in double that one can have some of those weapons in the player's hand if with another thing they could help me it is like putting jetpack to the team by Please explain to me I can leave the function in your comments please for my serious pleasure
  23. السلام عليكم انشاء الله تكونون بافضل حال كيف اخي التيم ما تقدر تحمل سلاح يعني تيم 1 م اتقدر تحمل سلاح يلزم تيم 2
  24. السلام عليكم ورحمة الله تعالى وبراكته انشاء الله تكونون بافضل حال اريد تصحيح الكود ---------------------------الكود سيرفر ----------------------------------- addEvent("OnTaxiJob",true) addEventHandler("OnTaxiJob",root, function (skin) if ( getElementData( source, "Job" ) == "TaxiJob" ) then return end setElementModel(source,tonumber(skin)) setElementData (source,"Job","TaxiJob" ) setPlayerTeam(source,"Unemployed") --- هنا الخطأ triggerClientEvent(source,"CreateTaxiMarkers",source) if getElementData(source,"Language") then outButDxChat("#AE00FF(TaxiJob) : #00FF00 لقد تم قبولك في وظيفة سائق التاكسي",source,0,255,255,true) else outButDxChat("#AE00FF(TaxiJob) : #00FF00You Join The Taxi Job ! ",source,0,255,255,true) end end) شكرا مسبقا
  25. Hey. Hace unos días escribí un poco sobre lo que pensabamos hacer con un servidor que estoy haciendo con un amigo, KFE Puedes leer un poco aquí: Una de las cosas que hemos notado es que con dos personas hacer un servidor de esta escala se vuelve un poco pesado. Ya habiamos tenido ayudantes antes, pero no se quedaron con nostros por mucho tiempo, ni dieron un aporte significativo a los recursos. Somos un poco ambiciosos y tenemos altos estándares, por eso no habiamos preguntado a la comunidad si querían trabajar con nostros, gratuitamente. Quiero enfatizar que no esperes tener nada a cambio, y aunque esto pueda sonar tacaño, se debe a que estamos buscando gente igual de ansiosa por un freeroam fresco, ademas, buscamos gente para agilizar la velocidad a la que avanzamos, no por necesidad. Claramente si nos echas una mano y nos resulta de mucha ayuda recibiras privilegios en el servidor! Dicho esto, puedes leer sobre nuestro servidor aqui: Ya que la mayoría de estos recursos tienen errores, el servidor se encuentra vacío, y que queremos cambiar un poco el sistema con el que funciona el servidor hemos decidido re-hacer un gran pedazo del mismo. Debido a esto, hemos cambiado el nombre del servidor a "AORU", siglas de "Asorus" Como puedes ver, ya tenemos una gran base de recursos e ideas con la que puedes decidir si te gustaria entrar a nuestro equipo. Buscamos gente en general. Si sabes scriptear, diseño gráfico o tienes conocimiento general de MTA, hablanos en nuestro servidor de Discord: https://discordapp.com/invite/vQ3nxtH Si tienes preguntas, estas en duda sobre si unirte o quieres ayudarnos de forma indirecta sin involucrarte en el projecto (Dando consejos, respondiendo dudas sobre X temas, probando recursos) entra al servidor de Discord para decirnos! Eso es todo. No esperamos que nadie se una, pero por probar no perdemos nada. Gracias por leer! KFE Va a estar abierto todo este tiempo!, la única diferencia es que no recibirá actualizaciones
  • Create New...