Author Topic: [Added]/ccolor  (Read 18085 times)

Offline style!

  • VIP
  • Jr. Member
  • **
  • Posts: 58
  • Rank: Unknown
  • Score: Unknown
[Added]/ccolor
« on: December 28, 2016, 01:28:39 pm »
Do /ccolor [id] work like /ccolor [id] [id]. (Same id x2).
« Last Edit: February 07, 2017, 01:40:10 pm by Jonne »


style_n_elegance

Offline Faro0s

  • VIP
  • Hero Member
  • **
  • Posts: 1113
  • Rank: Road Dawg
  • Score: 22227
  • Sniper aimbotter. -PluG
Re: /ccolor
« Reply #1 on: December 28, 2016, 01:38:05 pm »
I didn't understand lol
You must choose 2 colors i guess.

Since 2010.
• Reason for the report (Go into more detail about what they did):I killed ahmed and he tried to accuse me for killing him

Offline WuZi

  • VIP
  • Full Member
  • **
  • Posts: 137
  • Rank: Unknown
  • Score: Unknown
  • Gifts are always good
    • GgT Forum
Re: /ccolor
« Reply #2 on: December 28, 2016, 02:20:13 pm »
The first id is the first color and the second for the second color.

Offline Miau

  • VIP
  • Hero Member
  • **
  • Posts: 565
  • Rank: Jacker
  • Score: 46079
Re: /ccolor
« Reply #3 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,
« Last Edit: December 28, 2016, 02:39:54 pm by Mia »
Oh! I don't want to fight you, Jorah the Andal. What do I have to gain? If I win, I'm the shit who killed an old man. If I lose, I'm the shit who was killed by an old man.

~ Daario Naharis

Offline style!

  • VIP
  • Jr. Member
  • **
  • Posts: 58
  • Rank: Unknown
  • Score: Unknown
Re: /ccolor
« Reply #4 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


style_n_elegance

Offline Storm

  • VIP
  • Sr. Member
  • **
  • Posts: 278
  • Rank: Snitch
  • Score: 1263
  • Respect if you want to be respected
Re: /ccolor
« Reply #5 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

Offline Faro0s

  • VIP
  • Hero Member
  • **
  • Posts: 1113
  • Rank: Road Dawg
  • Score: 22227
  • Sniper aimbotter. -PluG
Re: /ccolor
« Reply #6 on: December 28, 2016, 06:13:27 pm »
Then +1

Since 2010.
• Reason for the report (Go into more detail about what they did):I killed ahmed and he tried to accuse me for killing him

Offline 𝙎𝙢𝙤𝙠𝙚𝙉

  • VIP
  • Jr. Member
  • **
  • Posts: 68
  • Rank: Red-Headed Stepchild
  • Score: 4680
  • Dime? Como es que se llena un corazón vació♫
Re: /ccolor
« Reply #7 on: December 28, 2016, 09:14:13 pm »
+1
I became a fan once I saw your avatar yes +1

Offline Ege

  • VIP
  • Hero Member
  • **
  • Posts: 856
  • Rank: Loc
  • Score: 39828
  • |m|
Re: /ccolor
« Reply #8 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

Offline Storm

  • VIP
  • Sr. Member
  • **
  • Posts: 278
  • Rank: Snitch
  • Score: 1263
  • Respect if you want to be respected
Re: /ccolor
« Reply #9 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

Offline Altus_Demens

  • Admin
  • Hero Member
  • ****
  • Posts: 1119
  • Rank: Hoodsta
  • Score: 23951
Re: /ccolor
« Reply #10 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 and this, 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.
A paltry man and poor of mind
At all things ever mocks;
For never he knows, what he ought to know,
That he is not free from faults.

Offline Ege

  • VIP
  • Hero Member
  • **
  • Posts: 856
  • Rank: Loc
  • Score: 39828
  • |m|
Re: /ccolor
« Reply #11 on: December 29, 2016, 06:23:28 am »
"/ccolor chathamsblue capepalliser"
Wat

Offline Faro0s

  • VIP
  • Hero Member
  • **
  • Posts: 1113
  • Rank: Road Dawg
  • Score: 22227
  • Sniper aimbotter. -PluG
Re: /ccolor
« Reply #12 on: December 29, 2016, 07:00:21 am »

Since 2010.
• Reason for the report (Go into more detail about what they did):I killed ahmed and he tried to accuse me for killing him

Offline Crash

  • VIP
  • Hero Member
  • **
  • Posts: 998
  • Rank: Playa Partner
  • Score: 10053
  • aka Kobe
Re: /ccolor
« Reply #13 on: December 29, 2016, 07:19:48 am »
are you that lazy lol?

Offline Niks

  • VIP
  • Full Member
  • **
  • Posts: 123
  • Rank: Shooter
  • Score: 67011
  • GgT <3
Re: /ccolor
« Reply #14 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