<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/AR/getMarkerColor?action=history&amp;feed=atom</id>
	<title>AR/getMarkerColor - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/AR/getMarkerColor?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/getMarkerColor&amp;action=history"/>
	<updated>2026-04-10T14:14:15Z</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/getMarkerColor&amp;diff=46579&amp;oldid=prev</id>
		<title>Jaber: Created page with &quot;__NOTOC__ {{Server client function}} هذه الوظيفة تقوم بجلب لون الماركر.  ==Syntax== &lt;syntaxhighlight lang=&quot;lua&quot;&gt; int, int, int, int getMarkerColor ( marker theMarke...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/getMarkerColor&amp;diff=46579&amp;oldid=prev"/>
		<updated>2016-02-08T18:30:57Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{Server client function}} هذه الوظيفة تقوم بجلب لون الماركر.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; int, int, int, int getMarkerColor ( marker theMarke...&amp;quot;&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 client function}}&lt;br /&gt;
هذه الوظيفة تقوم بجلب لون الماركر.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int, int, int, int getMarkerColor ( marker theMarker )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Marker]]:getColor||setMarkerColor}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theMarker''': الماركر الذي تريد جلب لونه.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Serverside example&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
هذا المثال يجلب لون الماركر ان كان ابيض يعطي دم وان احمر يقتل .&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function healOrKill ( hitMarker, matchingDimension )&lt;br /&gt;
	&lt;br /&gt;
	if not matchingDimension then&lt;br /&gt;
		return&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local R, G, B, A = getMarkerColor( hitMarker )-- نجلب لون الماركر&lt;br /&gt;
	-- (255,255,255) اذا كان اللون ابيض&lt;br /&gt;
	if R == 255 and G == 255 and B == 255 then&lt;br /&gt;
		--نعطي دم 100&lt;br /&gt;
		setElementHealth( source, 100 )&lt;br /&gt;
	--(255,0,0) اذا كان اللون احمر&lt;br /&gt;
	elseif R == 255 and G == 0 and B == 0 then&lt;br /&gt;
		-- نقتل الاعب&lt;br /&gt;
		killPed( source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
--حدث عند لمس الماركر&lt;br /&gt;
addEventHandler( &amp;quot;onPlayerMarkerHit&amp;quot;, getRootElement(), healOrKill )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Marker functions}}&lt;/div&gt;</summary>
		<author><name>Jaber</name></author>
	</entry>
</feed>