Tks15 Posted April 1, 2018 Share Posted April 1, 2018 Que função devo usar ao algum player matar outro ganhar estrela Link to comment
Other Languages Moderators Lord Henry Posted April 1, 2018 Other Languages Moderators Share Posted April 1, 2018 (edited) Pesquise mais na Wiki antes de perguntar. Está tudo em onPlayerWasted. addEventHandler ("onPlayerWasted", getRootElement(), function (ammo, attacker, weapon, bodypart) if (attacker) and getElementType (attacker) == "player" then local wanted = getPlayerWantedLevel (attacker) if wanted < 6 then setPlayerWantedLevel (attacker, wanted + 1) end elseif (attacker) and getElementType (attacker) == "vehicle" then local driver = getVehicleController (attacker) if driver and getElementType (driver) == "player" then local wanted = getPlayerWantedLevel (driver) if wanted < 6 then setPlayerWantedLevel (driver, wanted + 1) end end end end) De nada. Edited April 1, 2018 by Lord Henry 1 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