SA-MP Forums Archive
[FilterScript] [TD] Change car color - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [TD] Change car color (/showthread.php?tid=568968)



[TD] Change car color - SkyLoKi - 26.03.2015

Everything is very easy to do. Ability to add a little color to the cells, but it is generally fixable

While in transport press N
And TD appears to the left with a choice of color cars

You can change the color of a car projectibility variable ColorsAvailable
Need to introduce ID color cars
For example: 0, 224, 178 ...



// NEW (Squares more small -› More colors (64). And added "Close" button)
Screen: http://i.imgur.com/pYDp8DK.jpg
Link: http://pastebin.com/3Ls8Xu6L



// OLD VERSION
Screen: http://i.imgur.com/sFerz0Q.jpg
Link: http://pastebin.com/CCS1Nub5


Author: Sky[L]a[G]er (aka Mr.Flo)


Re: [TD] Change car color - supernerd2000 - 27.03.2015

When I put this in my GM I get the following error:
Код:
C:\Users\Abe\Documents\SAMP Stuff\GMs\nerdfm_nosave.pwn(448) : error 017: undefined symbol "S"



Re: [TD] Change car color - SkyLoKi - 27.03.2015

Try it now. I edited the code


Re: [TD] Change car color - supernerd2000 - 27.03.2015

Wow, that was fast! It compiled, so thats good. I'm about to test this in game.

Edit: Ok, took a look in game. This will definitely be replacing my old system of entering color ids manually. However, I did notice one minor graphical bug with it. If you look at the screen below, you notice the black box cuts off at the bottom of it. As I said, nothing major, just a little OCD thing xD





Re: [TD] Change car color - dakata994 - 27.03.2015

Good job bruh, REP+ from me. Keep up the good work ..


Respuesta: [TD] Change car color - alonxx - 28.03.2015

I love this TD Good job!


Re: [TD] Change car color - zT KiNgKoNg - 28.03.2015

Quote:
Originally Posted by supernerd2000
Посмотреть сообщение
Wow, that was fast! It compiled, so thats good. I'm about to test this in game.

Edit: Ok, took a look in game. This will definitely be replacing my old system of entering color ids manually. However, I did notice one minor graphical bug with it. If you look at the screen below, you notice the black box cuts off at the bottom of it. As I said, nothing major, just a little OCD thing xD
This is happening clearly because he hasn't optimized the position to work with most Resolutions, as an example: http://prntscr.com/6m8n67 - So honestly "Visually" it isn't the best and script wise It could be much much better.

- @supernerd2000 :: You can actually fix this issue on your own, but for future reference on the creators part should create his/her textdraws in-mind of other Resolutions.


Re: [TD] Change car color - Wolfe - 28.03.2015

Looks cool


Re: [TD] Change car color - supernerd2000 - 28.03.2015

Quote:
Originally Posted by zT KiNgKoNg
Посмотреть сообщение
This is happening clearly because he hasn't optimized the position to work with most Resolutions, as an example: http://prntscr.com/6m8n67 - So honestly "Visually" it isn't the best and script wise It could be much much better.

- @supernerd2000 :: You can actually fix this issue on your own, but for future reference on the creators part should create his/her textdraws in-mind of other Resolutions.
Yeah I figured it had something to do with resolutions. To be honest I never really understood how Textdraws worked in the sense that they would get messed up with resolutions other than what they are tested on. Then again I never did figure out how to script them without a tool of sorts :P


Re: [TD] Change car color - SkyLoKi - 28.03.2015

Quote:
Originally Posted by supernerd2000
Посмотреть сообщение
Wow, that was fast! It compiled, so thats good. I'm about to test this in game.

Edit: Ok, took a look in game. This will definitely be replacing my old system of entering color ids manually. However, I did notice one minor graphical bug with it. If you look at the screen below, you notice the black box cuts off at the bottom of it. As I said, nothing major, just a little OCD thing xD


Just corrected. You can watch the new code