AR/getPlayerName: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| Line 15: | Line 15: | ||
local localPlayerName = getPlayerName(getLocalPlayer()) -- أحظار اسم الاعب  | local localPlayerName = getPlayerName(getLocalPlayer()) -- أحظار اسم الاعب  | ||
outputChatBox(localPlayerName,255,255,0,true) -- اخراج صندوق دردشه في الشات  | outputChatBox(localPlayerName,255,255,0,true) -- اخراج صندوق دردشه في الشات  | ||
end --   | end --    | ||
addCommandHandler("Name", Name) -- اضافة امر في الكونسول  | addCommandHandler("Name", Name) -- اضافة امر في الكونسول  | ||
</syntaxhighlight>  | </syntaxhighlight>  | ||
Latest revision as of 00:28, 1 February 2015
: ملاحظة
ملأحظة : هاذي الوظيفة تقوم بـجلب اسم الاعب
عناصر مطلوبة
- thePlayer: اللاعب الذي سيحصل على اسم الاعب
 
</section>
Click to collapse [-]
Clientstring getPlayerName ( thePlayer )
: مثال
<section show="true" name="المثال الأول - Client" class="client"> هذا المثال يظهر اسم الاعب في الشات
function Name () -- أضافة وظيفة
local localPlayerName = getPlayerName(getLocalPlayer()) -- أحظار اسم الاعب
outputChatBox(localPlayerName,255,255,0,true) -- اخراج صندوق دردشه في الشات
end -- 
addCommandHandler("Name", Name) -- اضافة امر في الكونسول
For Wnash Time ..