[FilterScript] Vehicle Damage Enabler [Alpha v1.0]
#14

Quote:
Originally Posted by wampiros6
View Post
Mega ^.^ thanks
You're welcome, I'm glad that you like it

Quote:
Originally Posted by Abagail
View Post
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).
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.

Quote:
Originally Posted by Abagail
View Post
Also instead of subtracting a predefined value again and again you can just use an array.
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.
Reply


Messages In This Thread
Vehicle Damage Enabler [Alpha v2.1] - by Salvator - 03.03.2016, 22:34
Re: Vehicle Damage Enabler [Alpha v1.0] - by AzaMx - 03.03.2016, 22:41
Re: Vehicle Damage Enabler [Alpha v1.0] - by Salvator - 03.03.2016, 23:25
Re: Vehicle Damage Enabler [Alpha v1.0] - by SeanGarnier - 04.03.2016, 00:47
Re: Vehicle Damage Enabler [Alpha v1.0] - by Crayder - 04.03.2016, 02:50
Re: Vehicle Damage Enabler [Alpha v1.0] - by illuminati2 - 04.03.2016, 07:13
Re: Vehicle Damage Enabler [Alpha v1.0] - by Salvator - 04.03.2016, 08:46
Re: Vehicle Damage Enabler [Alpha v1.0] - by illuminati2 - 04.03.2016, 08:57
Re: Vehicle Damage Enabler [Alpha v1.0] - by Kasis - 04.03.2016, 09:03
Re: Vehicle Damage Enabler [Alpha v1.0] - by Salvator - 04.03.2016, 11:05
New update Alpha v2.0 - by Salvator - 05.03.2016, 16:55
Re: Vehicle Damage Enabler [Alpha v1.0] - by wampiros6 - 05.03.2016, 17:08
Re: Vehicle Damage Enabler [Alpha v1.0] - by Abagail - 05.03.2016, 18:03
Re: Vehicle Damage Enabler [Alpha v1.0] - by Salvator - 05.03.2016, 18:58
Re: Vehicle Damage Enabler [Alpha v1.0] - by OmegaKiller72 - 05.03.2016, 21:54
Re: Vehicle Damage Enabler [Alpha v1.0] - by Crayder - 05.03.2016, 21:59
Re: Vehicle Damage Enabler [Alpha v1.0] - by Salvator - 05.03.2016, 23:27
Re: Vehicle Damage Enabler [Alpha v1.0] - by Crayder - 06.03.2016, 03:25
Re: Vehicle Damage Enabler [Alpha v1.0] - by Salvator - 06.03.2016, 14:01
New update Alpha 2.1 - by Salvator - 06.03.2016, 17:19

Forum Jump:


Users browsing this thread: 1 Guest(s)