Jump to content

Funciones


Javier

Recommended Posts

Si lo haces client side, si.

OK Gracias, ah Esto està bien?

function sound ( attacker, weapon, bodypart ) 
     local Zx,Zy,Zz = getElementPosition(getLocalPlayer()) 
     if ( getElementsType ( attacker ) == "ped" ) then 
         local sound = playSound3D("sound/ah.mp3", Zx,Zy,Zz, false) 
         setSoundMaxDistance(sound, 25) 
     end 
end 
addEventHandler("onClientPlayerDamage", getLocalPlayer(), sound) 

Link to comment
  • Recently Browsing   0 members

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