Plan B

General => Suggestions => Added => Topic started by: style! on December 28, 2016, 01:28:39 pm

Title: [Added]/ccolor
Post by: style! on December 28, 2016, 01:28:39 pm
Do /ccolor [id] work like /ccolor [id] [id]. (Same id x2).
Title: Re: /ccolor
Post by: Faro0s on December 28, 2016, 01:38:05 pm
I didn't understand lol
You must choose 2 colors i guess.
Title: Re: /ccolor
Post by: WuZi on December 28, 2016, 02:20:13 pm
The first id is the first color and the second for the second color.
Title: Re: /ccolor
Post by: Miau on December 28, 2016, 02:38:11 pm
I think he means that the command should automatically use the same color for both indexes if the user only types the first one. For example, /ccolor 7 would be the same as /ccolor 7 7.

It's not a very big deal, but I like the idea, since most vehicles have only one color index,
Title: Re: /ccolor
Post by: style! on December 28, 2016, 02:43:44 pm
I think he means that the command should automatically use the same color for both indexes if the user only types the first one. For example, /ccolor 7 would be the same as /ccolor 7 7.

It's not a very big deal, but I like the idea, since most vehicles have only one color index,

Yes, sometimes I'm too lazy to write..

I didn't mean to change functionality of ccolor [id1] [id2], just add /ccolor [id].

Something like this:

if cmd = "/ccolor"
   if params.length = 2
      //do ccolor id1 id2
   else if params.length = 1
      //do ccolor id1 id1
   else
      //invalid sintax
Title: Re: /ccolor
Post by: Storm on December 28, 2016, 04:05:41 pm
+1. I have an addition, /ccolor "color1 color2" instead of numeric value, the player can input a string and the system will automatically get the id of that color. (Use switch-case here). E.g /ccolor blue red
Title: Re: /ccolor
Post by: Faro0s on December 28, 2016, 06:13:27 pm
Then +1
Title: Re: /ccolor
Post by: 𝙎𝙢𝙤𝙠𝙚𝙉 on December 28, 2016, 09:14:13 pm
+1
Title: Re: /ccolor
Post by: Ege on December 28, 2016, 09:23:15 pm
+1 to the suggestion. Also, speaking of /ccolor command, I have another suggestion:

Can we have a 3rd parameter in /ccolor to save the color? This can be optional like < /ccolor id id yes/no >
When we type yes those colors will be saved and the vehicle we drive will automatically have those colors.
Friauf should see this as he's the one addicted to one color mostly :p
Title: Re: /ccolor
Post by: Storm on December 29, 2016, 01:32:24 am
Can we have a 3rd parameter in /ccolor to save the color? This can be optional like < /ccolor id id yes/no >
When we type yes those colors will be saved and the vehicle we drive will automatically have those colors.

That one has already been suggested by me, and it will be added. Read it here (http://jonne.be/forum/index.php?topic=648.0)
Title: Re: /ccolor
Post by: Altus_Demens on December 29, 2016, 05:16:16 am
Do /ccolor [id] work like /ccolor [id] [id]. (Same id x2).
+1. I have an addition, /ccolor "color1 color2" instead of numeric value, the player can input a string and the system will automatically get the id of that color. (Use switch-case here). E.g /ccolor blue red
I like both of the suggestions, +1. Yeah, it is not the most important suggestion ever, but it will simplify /ccolor usage and it is extremely easy to implement. I hope we'll see it in the future updates.

As for Storm's suggestion, ideally all of the colours should be enumerated, using, for example, this (http://wiki.sa-mp.com/wiki/Vehicle_Color_IDs) and this (http://chir.ag/projects/name-that-color/), so you can forget about numerical values completely. But I don't think "/ccolor chathamsblue capepalliser" will be really widely used unless we've got a lot of designers here. ;D Talking seriously, adding 10-15 main colours would be fine.

P.S. I didn't know that the first colour (/ccolor 1 1) is not really white. :o My life will never be the same.
Title: Re: /ccolor
Post by: Ege on December 29, 2016, 06:23:28 am
"/ccolor chathamsblue capepalliser"
Wat
Title: Re: /ccolor
Post by: Faro0s on December 29, 2016, 07:00:21 am
"/ccolor chathamsblue capepalliser"
Wat
Title: Re: /ccolor
Post by: Crash on December 29, 2016, 07:19:48 am
are you that lazy lol?
Title: Re: /ccolor
Post by: Niks on December 30, 2016, 04:21:31 am
+1. I have an addition, /ccolor "color1 color2" instead of numeric value, the player can input a string and the system will automatically get the id of that color. (Use switch-case here). E.g /ccolor blue red
I like this idea more then numeric
Title: Re: /ccolor
Post by: Jonne on January 11, 2017, 11:19:33 pm
We'll add this in a future update.