Jump to content

[HELP] onElementDestroy question


..:D&G:..

Recommended Posts

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.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...