Jump to content

استفسار بكود تشغيل الصوت


#STZ

Recommended Posts

السلام عليكم و رحمة الله و بركاته

امس سويت كود لما يضغط زر موسيقي تشتغل لاكن ما اشتغلت

انا سويته في لوحة بزر من اف 10 لين اجربه بعدين اشوف اسويه من ماركر

addEventHandler("onClientGUIClick",root,function () -- حدث عند الضغط
if source == GUIEditor.button[1] then 
   local alarm = playSound("alarm.mp3");
        setSoundVolume(sound, 0.1);
exports.TopBarChat:sendClientMessage("يتم الهجوم علي عصابة المافيا | تنبية",source,0,255,0)
end 
end 
) 

 

Link to comment
addEventHandler("onClientGUIClick",root,
function () 
	if source == GUIEditor.button[1] then 
		alarm = playSound("alarm.mp3");
		setSoundVolume(alarm, 0.1);
		exports.TopBarChat:sendClientMessage("يتم الهجوم علي عصابة المافيا | تنبية",source,0,255,0)
    end 
end 
) 

تأكد من اسم الصوت انه موجود في الميتا .

  +

الكود حق التوب بار شات ماني متأكد اذا هو صحيح او لا لأني ماعرف الارقمنت حقه

Link to comment
3 hours ago, NssoR said:

addEventHandler("onClientGUIClick",root,
function () 
	if source == GUIEditor.button[1] then 
		alarm = playSound("alarm.mp3");
		setSoundVolume(alarm, 0.1);
		exports.TopBarChat:sendClientMessage("يتم الهجوم علي عصابة المافيا | تنبية",source,0,255,0)
    end 
end 
) 

تأكد من اسم الصوت انه موجود في الميتا .

  +

الكود حق التوب بار شات ماني متأكد اذا هو صحيح او لا لأني ماعرف الارقمنت حقه

 

مافيه ارقمنت لاعب بالكلينت في التوب بار شات 

+ مفروض يتحقق من الصوت اذا كان موجود يحذفه او يوقف الوظيفة

Link to comment
23 hours ago, NssoR said:

addEventHandler("onClientGUIClick",root,
function () 
	if source == GUIEditor.button[1] then 
		alarm = playSound("alarm.mp3");
		setSoundVolume(alarm, 0.1);
		exports.TopBarChat:sendClientMessage("يتم الهجوم علي عصابة المافيا | تنبية",source,0,255,0)
    end 
end 
) 

تأكد من اسم الصوت انه موجود في الميتا .

  +

الكود حق التوب بار شات ماني متأكد اذا هو صحيح او لا لأني ماعرف الارقمنت حقه

اسم الصوت تمام + التوب بار شات متاكد ممنه لاني ضايف نفس شطر في اكثر من مود و شغال تمام

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...