Gaimo Posted August 26, 2020 Share Posted August 26, 2020 onClientPlayerWasted > Eu consigo algumas informações referentes ao killer Queria pegar informações do jogador morto no momento da sua morte, como eu poderia fazer isso? local posX, posY, posZ = getElementPosition(source) local rotX, rotY, rotZ = getElementRotation(source) local interior = getElementInterior(source) local dimension = getElementDimension(source) for i=1,12 do local weaponid = getPedWeapon(source, i) local ammo = getPedTotalAmmo(source, i) local clip = getPedAmmoInClip(source, i) end Link to comment
Other Languages Moderators androksi Posted August 26, 2020 Other Languages Moderators Share Posted August 26, 2020 Olá, Gaimo. Use o evento server-side onPlayerWasted. 1 Link to comment
XXII Posted September 2, 2020 Share Posted September 2, 2020 Olá, você pode usar o onPlayerWasted, é um evento que ao jogador morrer ele aciona Link to comment
Gaimo Posted September 2, 2020 Author Share Posted September 2, 2020 O server-side funcionou perfeitamente, obrigado. 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