Big Smoker Posted March 30, 2020 Share Posted March 30, 2020 Bom dia, eu fiz um sistema que faz identificar o dano do player quando acerta o corpo, porem nao consigo identificar o Headshot ou partes do corpo funcional. Alguem pode me ajudar? a função usada é a onClientPlayerWeaponFire function tiro(wap,mag,ClipM,x,y,z,element) if element then if getType(element) then screenX, screenY = getScreenFromWorldPosition(x,y,z) if getType(element) then receivePos() end if getType(element) == "player" then dano, weapon = weaponDamage() triggerServerEvent("sincroniaSv", getLocalPlayer(), element, dano, weapon) end end end end addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), tiro) OBRIGADO. Link to comment
Other Languages Moderators Lord Henry Posted March 30, 2020 Other Languages Moderators Share Posted March 30, 2020 Para obter a parte do corpo que sofreu dano, é preciso usar a função onClientPlayerDamage. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now