I've made a random carcolor function for all my cars, but the colorschedule really sucks. I have only the basic carcolors in my schedule (White, black, red, yellow, etc). Who has a nice colorschedule for me? Without the weird colors such as orange and purple in it?
You want a so called "color schedule" with only the primary colors + black and white? ...
not much but k.. got it from luxadmin btw..
If you want more, go search thru admin systems and gamemodes. They got plenty of colors defined..
No, i mean a carcolor shedule, so something like this, but with more colors in it:
I've got this list generator tool and i did 0 - 126 since those are all colors :P
Код:
new colors[127] = { 0, 01, 02, 03, 04, 05, 06, 07, 08, 09, 010, 011, 012, 013, 014, 015, 016, 017, 018, 019, 020, 021, 022, 023, 024, 025, 026, 027, 028, 029, 030, 031, 032, 033, 034, 035, 036, 037, 038, 039, 040, 041, 042, 043, 044, 045, 046, 047, 048, 049, 050, 051, 052, 053, 054, 055, 056, 057, 058, 059, 060, 061, 062, 063, 064, 065, 066, 067, 068, 069, 070, 071, 072, 073, 074, 075, 076, 077, 078, 079, 080, 081, 082, 083, 084, 085, 086, 087, 088, 089, 090, 091, 092, 093, 094, 095, 096, 097, 098, 099, 0100, 0101, 0102, 0103, 0104, 0105, 0106, 0107, 0108, 0109, 0110, 0111, 0112, 0113, 0114, 0115, 0116, 0117, 0118, 0119, 0120, 0121, 0122, 0123, 0124, 0125, 0126 };
Use something equal to Mike Peterson's variable, then use random() to pick a random color from it - easy as pie.