..:D&G:.. Posted February 22, 2016 Posted February 22, 2016 Hey, I just came accross this event that kinda comes in really helpful which is onElementDestroy but I have a question. Is there anyway to make it so the function executes something only if the element was destroy somehow by a player? I mean, I am doing a small function for my logs, and when a vehicle is destory, it should be recorded in the logs, but I only want to record it in, only if the vehicle was destroy by the script and not by a player that executed a command. Dunno if this is possible, I thought maybe it is like onPlayerQuit, from which you can get the reason the player quit... Anyway.. Thanks. MTA:Rust Pre-Alpha Build v.0.3: https://forum.mtasa.com/viewtopic.php?f=114&t=97848 2Pac: ''Only God can judge me!''
tosfera Posted February 22, 2016 Posted February 22, 2016 the event is only triggered when the resource has been stopped or destroyElement has been used. I don't think that there is a way to see how the object has been destroyed.. If you want to contact me directly concerning Advanced-Gaming, please contact me at [email protected]
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