Jump to content

x[طلب]x كود تشغيل اغاني للوحة تسجيل


Recommended Posts

اخي هكذا الترتيب للاكواد صح ام لا

  
playSound 
onPlayerLogin 
stopSound 
  

صح ام لا + انا ما ابي تايمر لاني ابي الاغنيه ششغاله واللوحة مفتوحة اول ما يسجل الاغنيه تطفي

Link to comment

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

ابي احد يسويها علشان اتعلم

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

--------------

انا وصلت لحد كده فاضل الترايقر

-----تشغيل الصوت 
addEventHandler( "onClientResourceStart", resourceRoot, sound ) 
function sound() 
    sound = playSound( "music.mp3", true ) 
end 
---توقيف الصوت 
function stopMySound() 
    stopSound( music ) 
end 

Link to comment

addEventHandler("onClientResourceStart", resourceRoot, 
function() 
if isElement(sound) then destroyElement(sound) end 
sound = playSound("File.mp3") 
end) 
  
addEvent("StopSound", true) 
addEventHandler("StopSound", root, 
function() 
stopSound(sound) 
end 
) 
--#ServerSide 
addEventHandler("onPlayerLogin", root, 
function() 
triggerClientEvent(source, "StopSound", source) 
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...