14.01.2012, 01:50
Look at his original message lol.
"how can i create a vehicle and let it diasappear when its destroyed?
Cause right now it always respawns after its destroyed."
He's asking about a single vehicle. iGetty's code would destroy every vehicle on the server that dies. This isnt ideal if your only looking to do that for a single vehicle, or even a selected few vehicles! Im not sure what he's trying to accomplish through this, but picture a big server with lots of vehicles placed. Lets say this server wanted to make a (badly coded) vehicle purchaser and decided to just let the vehicles exist until they die, where they would then be destroyed so they dont respawn where they were purchased. Destroying every vehicle on death would accomplish this task, but it would also destroy every other vehicle that dies.
IF thats what he was asking for, i misunderstood due to the wording (sorry), and iGetty's code should be used without the if statements in that case.
"how can i create a vehicle and let it diasappear when its destroyed?
Cause right now it always respawns after its destroyed."
He's asking about a single vehicle. iGetty's code would destroy every vehicle on the server that dies. This isnt ideal if your only looking to do that for a single vehicle, or even a selected few vehicles! Im not sure what he's trying to accomplish through this, but picture a big server with lots of vehicles placed. Lets say this server wanted to make a (badly coded) vehicle purchaser and decided to just let the vehicles exist until they die, where they would then be destroyed so they dont respawn where they were purchased. Destroying every vehicle on death would accomplish this task, but it would also destroy every other vehicle that dies.
IF thats what he was asking for, i misunderstood due to the wording (sorry), and iGetty's code should be used without the if statements in that case.