otavio53 Posted January 3, 2019 Posted January 3, 2019 olá, alguém poderia me manda um script onde quem tiver com a tag de mecânico poder da o comando /reparar que faria com que o carro que estiver na frente dele ficasse full HP
Tommy. Posted January 7, 2019 Posted January 7, 2019 Fiz aqui rápidão para você, bom ele não repara o veículo que está na frente e sim o veículo que ele está dentro (= acl = "Mecanico" function mecRepair(source) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup(acl)) then if getPedOccupiedVehicle(source) then fixVehicle(getPedOccupiedVehicle(source)) end end end addCommandHandler("reparar", mecRepair) EDIT: i did not tested
otavio53 Posted January 7, 2019 Author Posted January 7, 2019 (edited) Não, não foi Edited January 7, 2019 by otavio53
Other Languages Moderators Lord Henry Posted January 7, 2019 Other Languages Moderators Posted January 7, 2019 Ative o /debugscript 3 e mostre o erro.
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