<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/ES/getPlayerTeam?action=history&amp;feed=atom</id>
	<title>ES/getPlayerTeam - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/ES/getPlayerTeam?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/getPlayerTeam&amp;action=history"/>
	<updated>2026-05-01T07:06:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/getPlayerTeam&amp;diff=69210&amp;oldid=prev</id>
		<title>Myonlake: Myonlake moved page Es/getPlayerTeam to ES/getPlayerTeam</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/getPlayerTeam&amp;diff=69210&amp;oldid=prev"/>
		<updated>2021-02-21T19:00:44Z</updated>

		<summary type="html">&lt;p&gt;Myonlake moved page &lt;a href=&quot;/wiki/Es/getPlayerTeam&quot; class=&quot;mw-redirect&quot; title=&quot;Es/getPlayerTeam&quot;&gt;Es/getPlayerTeam&lt;/a&gt; to &lt;a href=&quot;/wiki/ES/getPlayerTeam&quot; title=&quot;ES/getPlayerTeam&quot;&gt;ES/getPlayerTeam&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:00, 21 February 2021&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key wiki-wiki_dev_:diff::1.12:old-35343:rev-69210 --&gt;
&lt;/table&gt;</summary>
		<author><name>Myonlake</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/getPlayerTeam&amp;diff=35343&amp;oldid=prev</id>
		<title>Emiliano Castro: Created page with &quot;{{Server client function}} __NOTOC__ Esta funcion permite obtener el equipo en el que esta un jugador.  ==Syntax== &lt;syntaxhighlight lang=&quot;lua&quot;&gt; team getPlayerTeam ( player thePlayer ) &lt;/syntaxhighlight&gt;  ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/getPlayerTeam&amp;diff=35343&amp;oldid=prev"/>
		<updated>2013-04-13T00:00:38Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Server client function}} __NOTOC__ Esta funcion permite obtener el equipo en el que esta un jugador.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; team getPlayerTeam ( player thePlayer ) &amp;lt;/syntaxhighlight&amp;gt;  ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Esta funcion permite obtener el equipo en el que esta un jugador.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
team getPlayerTeam ( player thePlayer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Argumentos requeridos===&lt;br /&gt;
*'''thePlayer''': El [[player]] ( Jugador ) de quien quieres obtener el equipo.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Nos devuelve el ''equipo'' en el que esta el player, devuelve ''false'' si el jugador no pertenece a ningun equipo.&lt;br /&gt;
&lt;br /&gt;
==Ejemplo==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Este ejemplo busca el equipo del jugador, y luego le cambia de nombre.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function teamName ( source, key, newTeamName )&lt;br /&gt;
    local playerTeam = getPlayerTeam ( source )          -- obtener el equipo del jugador&lt;br /&gt;
    if ( playerTeam ) then                               -- si el esta en un equipo...&lt;br /&gt;
        local oldTeamName = getTeamName ( playerTeam )   -- obtener el nombre del equipo&lt;br /&gt;
        setTeamName ( playerTeam, newTeamName )          -- cambiar el nombre del equipo&lt;br /&gt;
        outputChatBox ( &amp;quot;El jugador &amp;quot; .. getPlayerName ( source )..&amp;quot; ha cambiado el nombre del equipo &amp;quot; .. oldTeamName .. &amp;quot; por &amp;quot; .. newTeamName, root, 0, 255, 0, false )&lt;br /&gt;
    else&lt;br /&gt;
        outputChatBox ( getPlayerName ( source ) .. &amp;quot; no estas en un equipo&amp;quot;, source, 255, 0, 0, false )&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;teamname&amp;quot;, teamName )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Mira tambien==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>Emiliano Castro</name></author>
	</entry>
</feed>