Search the Community

Showing results for tags 'team'.

More search options

  • 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
  • Archive
  • Private Bugtracker

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



About Me





Found 27 results

  1. redditing

    Button Team

    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
  2. 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...
  3. 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?
  4. 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.
  5. 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?
  6. 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?
  7. ¡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: Comentando en qué tipo de equipo te gustaría entrar. Que tengan un buen día.
  8. 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.
  9. #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?
  10. 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
  11. 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
  12. Como eu adiciono varias Team Com ACL ? sem bugar
  13. Tron

    Team script error

    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 )
  14. 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.
  15. 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
  16. Layoffin

    My First Map!!

    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
  17. 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?
  18. 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.
  19. 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
  20. السلام عليكم انشاء الله تكونون بافضل حال كيف اخي التيم ما تقدر تحمل سلاح يعني تيم 1 م اتقدر تحمل سلاح يلزم تيم 2
  21. السلام عليكم ورحمة الله تعالى وبراكته انشاء الله تكونون بافضل حال اريد تصحيح الكود ---------------------------الكود سيرفر ----------------------------------- 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) شكرا مسبقا
  22. 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: 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
  23. screedix

    Team System

    Hey. So I've been trying out all these team systems I've found and it's been an absolute nightmare. Some of them work, but are extremely lacking of features, the others just purely don't work at all. I'm reaching out for help to all of you, cause I know this would be the best place to ask for help. All I want is a system as where only admins can create groups, but players could only invite others to that group. I'd want the group to have different permissions, for an example the leader of the group being able to invite new members whilst the normal members couldn't do that. I'd like it to be so when you invite the player, only then he can join. As of right now, I'm stuck with using the team system on the admin-panel. I want it so when you invite a player, they only need to add the clan tag to their name and they'll be automatically in the team. When joining the team, they should have the same name color as the team name color. Let me know if you know about scripts like these and where I could find them. Thank you.
  24. Hello, I'm having a slight problem which I'm really hoping to find an answer for. I'm using lil_toady's admin panel on my server, associated with it's "team-system". When a team is created, it's also sent to the scoreboard (TAB BUTTON). The problem is, I'd want to hide the team when none of it's members are online. Currently, when nobody is online from the team, all it does is shows the team name and then "0 players" at the end. Is there a way to fix this? Thank you in advance.
  25. hi some time ago castillo give a script that saves team why it no work? he said he have no time to test. function playerLogin (thePreviousAccount, theCurrentAccount, autoLogin) if not (isGuestAccount (getPlayerAccount (source))) then local accountData = getAccountData (theCurrentAccount, "team") if (accountData) then setPlayerTeam(source,accountData) end end end addEventHandler ("onPlayerLogin", getRootElement(), playerLogin) function onQuit (quitType, reason, responsibleElement,thePreviousAccount) if not (isGuestAccount (getPlayerAccount (source))) then account = getPlayerAccount (source) if (account) then local team = getPlayerTeam(source) local teamname = getTeamName(team) setAccountData (account, "team", teamname) end end end addEventHandler ("onPlayerQuit", getRootElement(), onQuit) function onLogout(prevAccount) if not (isGuestAccount (getPlayerAccount (source))) then account = getPlayerAccount (source) if (account) then local team = getPlayerTeam(source) local teamname = getTeamName(team) setAccountData (account, "team", teamname) end end end addEventHandler("onPlayerLogout", getRootElement(), onLogout)