<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/AR/setPlayerTeam?action=history&amp;feed=atom</id>
	<title>AR/setPlayerTeam - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/AR/setPlayerTeam?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setPlayerTeam&amp;action=history"/>
	<updated>2026-06-30T12:13:56Z</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=AR/setPlayerTeam&amp;diff=36866&amp;oldid=prev</id>
		<title>Ahmad Mohammed at 23:29, 8 August 2013</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setPlayerTeam&amp;diff=36866&amp;oldid=prev"/>
		<updated>2013-08-08T23:29:59Z</updated>

		<summary type="html">&lt;p&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 23:29, 8 August 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;__NOTOC__&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;__NOTOC__&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Server function}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Server function}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''.اخر. اللاعب سوف يتم نقله تلقائياً من فريقه الموجود فيه اذا كان &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;الفريق موجوداً &lt;/del&gt;([[team]]) الى فريق ([[player]]) هذه الوظيفة تقوم بنقل اللاعب'''&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''.اخر. اللاعب سوف يتم نقله تلقائياً من فريقه الموجود فيه اذا كان &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;في فريق &lt;/ins&gt;([[team]]) الى فريق ([[player]]) هذه الوظيفة تقوم بنقل اللاعب'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==تركيب الجملة البرمجية==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==تركيب الجملة البرمجية==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki-wiki_dev_:diff::1.12:old-36865:rev-36866 --&gt;
&lt;/table&gt;</summary>
		<author><name>Ahmad Mohammed</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setPlayerTeam&amp;diff=36865&amp;oldid=prev</id>
		<title>Ahmad Mohammed: AR/setPlayerTeam</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setPlayerTeam&amp;diff=36865&amp;oldid=prev"/>
		<updated>2013-08-08T23:18:45Z</updated>

		<summary type="html">&lt;p&gt;AR/setPlayerTeam&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
'''.اخر. اللاعب سوف يتم نقله تلقائياً من فريقه الموجود فيه اذا كان الفريق موجوداً ([[team]]) الى فريق ([[player]]) هذه الوظيفة تقوم بنقل اللاعب'''&lt;br /&gt;
&lt;br /&gt;
==تركيب الجملة البرمجية==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setPlayerTeam ( player thePlayer, team theTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===معاني الكلمات===&lt;br /&gt;
*'''thePlayer:''' اللاعب الذي تريد تغيير فريقه&lt;br /&gt;
*'''theTeam:''' اذا كنت تريد إلغاء اللاعب من فريقه [[nil]] الفريق الذي تريد إضافة اللاعب إليه, او&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
اذا كان خلاف ذلك ''false'' اذا تمت عملية نقل اللاعب الى الفريق المطلوب بنجاح او تمت إزالته من فريقه السابق, او كـ ''true'' إرجاع كـ&lt;br /&gt;
&lt;br /&gt;
==مثال==&lt;br /&gt;
.هذا المثال يقوم بإضافة امر لإنشاء فريق جديد للاعب, وبعد ذلك يقوم بإضافة اللاعب الى الفريق. وايضاً إضافة امر لكي يخرج من فريقه&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function assignNewTeam ( source, commandName, teamName )&lt;br /&gt;
  local theTeam = createTeam ( teamName )  -- يتم إنشاء فريق على الاسم الذي اختاره كاتب الامر&lt;br /&gt;
  if theTeam then                          -- اذا تم إنشاء الفريق بنجاح&lt;br /&gt;
    setPlayerTeam ( source, theTeam )    -- قم بإضافة اللاعب الى الفريق الجديد&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;gimmeateam&amp;quot;, assignNewTeam ) -- ( gimmeateam إضافة امر ( عندما يقوم اللاعب بكتابة&lt;br /&gt;
&lt;br /&gt;
function unassignTeam ( source, commandName )&lt;br /&gt;
  local theTeam = getPlayerTeam ( source )  -- getPlayerTeam تحقق اذا كان اللاعب في فريق عن طريق&lt;br /&gt;
  if theTeam then                          -- اذا كان اللاعب في فريق&lt;br /&gt;
    setPlayerTeam ( source, nil )    -- نقوم بإلغاء اللاعب من فريقه&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;takeawaymyteam&amp;quot;, unassignTeam ) -- ( takeawaymyteam إضافة امر (عندما يقوم اللاعب بكتابة&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==المشاكل==&lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|6861|onResourceStart اذا وضع في clientاعضاء الفريق لا يتم إرسالهم الى جانب الـ}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==إنظر أيضاً==&lt;br /&gt;
{{Team_functions}}&lt;/div&gt;</summary>
		<author><name>Ahmad Mohammed</name></author>
	</entry>
</feed>