Ders Sahibi


BARİSERDOGAN

Oluşturma Tarihi: 22.09.2019

Bu ders size yardımcı oldumu?

Evet (0) (0) Hayır

playSound

  • Söz Dizimi
element playSound ( string soundPath, [ bool looped = false, bool throttled = true ] )

 

  • Client Kod
function wasted (killer, weapon, bodypart) 
	local sound = playSound("ses.mp3") 
end

addEventHandler("onClientPlayerWasted", localPlayer, wasted)

 

  • Meta XML
<meta>
  <info author="BarisErdogan" type="script" version="1.0.0" />
  
  <script src="client.lua" type="client" />
  
  <file src="ses.mp3" />
  
</meta>