10.03.2017, 04:54
Quote:
Seeing your previous posts I notice you are in a defensive mood, so, before everything, sorry for being alive.
The code you provided is pretty useless as it will destroy the player's vehicle 300 seconds after he uses the command. He can use the car for only 300 seconds, which is not.. cool? The second problem with this code is that, if you use the /dcar command, leave the car and get in other car, the car you joined will get deleted after 300 seconds, which is not good at all. The better way to do this function is to assign the car id to a player variable and detroy the car under OnPlayerStateChange, that way you can delete the car when the player decides to leave it. |
He said he wanted the car to be destroyed after 5 minutes. 5 minutes is 300 seconds, so that's correct.
The second part you stated about assigning the car id probably would be better. Yet, I can't be asked to put more effort into someone who isn't willing to say thanks or give rep for helping them out. @OP