05.03.2016, 18:58
You're welcome, I'm glad that you like it
Thank you for showing me this I wasn't aware of that at all. I'm new at scripting, but still I wouldn't like my scripts to be bad coded. I'll try to make it with that code you wrote.
I know this could be done in a better way, just wasn't sure how and didn't have time actually to figure it out, as soon as I enabled tire popping a wanted to upload it. I planed to get back to edit code before next release.
Again thank you for your comments, as I'm new I need to hear what can be done better and especially how. Giving you +REP.
P.S. I removed codes, so that post don't take too much space.
Quote:
Looping through all players each time someone shoots an unoccupied vehicle is redudant and inefficent. Instead of looping through, you can use a variable and update it each time the driver enters/exits the vehicle(OnPlayerStateChange is great for this).
|
Quote:
Also instead of subtracting a predefined value again and again you can just use an array.
|
Again thank you for your comments, as I'm new I need to hear what can be done better and especially how. Giving you +REP.
P.S. I removed codes, so that post don't take too much space.