Jump to content

سكربت رسالة ترحيب


Recommended Posts

1 minute ago, Dragon Fire said:

هل يوجد خطأ بالأكواد ؟؟؟؟


addEventHandler("onClientPlayerJoin", getRootElement(),
    function ()
        outputChatBox( "حيآك الله في سيرفر كبار الشخصيات الرسمي", 255, 255, 255, true )
    end
)

 

لا يوجد خطأ .

Link to comment
1 minute ago, Dragon Fire said:

الكلينت للاعب فقط والسيرفر للاعبين وللاعب فقط ؟؟؟؟ تناقض

ابغاك تفرق بالتفصيل

يعني مثلا لو صنعت اوبجكت اول ما الاعب يدخل السيرفر بملف سيرفر رح ييجي للكل ذا الاوبجكت, لكن لو كلنت بس الاعب رح يشوفه

Link to comment

هذا مثال من الويكي مستخدمين فيه سويرس وشغال

addEventHandler ( "onClientElementDataChange", getRootElement(),
function ( dataName )
	if getElementType ( source ) == "player" and dataName == "score" then
		outputChatBox ( getPlayerName(source).."'s new score is "..getElementData (source, "score").."!" )
	end
end )

 

Link to comment
Just now, Mhmd.z said:

هذا مثال من الويكي مستخدمين فيه سويرس وشغال


addEventHandler ( "onClientElementDataChange", getRootElement(),
function ( dataName )
	if getElementType ( source ) == "player" and dataName == "score" then
		outputChatBox ( getPlayerName(source).."'s new score is "..getElementData (source, "score").."!" )
	end
end )

 

نعم يا صديقي , أنا لا أعارضك .

لكن هنا سورس هو تعريف للاعب ! 

1 minute ago, MR.NaiF-MTA said:

انت الحين قلت سورس سيرفر فقط 

تبي تفهني ان هذا الكود لو كلاينت ماراح يشتغل؟ 


و    setElementInterior ( localPlayer, 0 )

 

@#_iMr.[E]coo

source وليس localPlayer راح يشتغل لأنك حاط  

Link to comment

@MR.NaiF-MTA

كلام الأخ ايكو صحيح

source = تستخدم في كلنت عأدي جدأ مثلا

if ( source == button ) then
  
guiSetEnabled ( source, false ) -- يقفل الزر الهوا button

لاكن م تنفع تستخدم في ال
 

outputChatBox

في كلنت تستخدم بدون ارقمنت لاعب

الكود بيصير

	addEventHandler ( "onPlayerJoin", root,
		function ( )
			outputChatBox ( "مرحبأ بك في السرفر", source,255,255,255,true )
		end
	end
)

 

 

Edited by Deativated
  • Like 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...