[FilterScript] C-RainbowCar
#1

Features
  • 6 different colors
  • Easy to add more colors
Commands
  • /rainbow - Starts the rainbow car
  • /stop - Stops the rainbow car
Credits
  • C00K13M0N$7T3R - Creating of the script
  • Zeex - zcmd
Bugs
  • None found
Video
http://www.xfire.com/video/5a6273/

Download
Reply
#2

it gets bugged when you reach the yellow color, no more colors comming, nice job
Reply
#3

Quote:
Originally Posted by Cena44
Посмотреть сообщение
it gets bugged when you reach the yellow color, no more colors comming, nice job
Thanks.

Reduced the colors
Reply
#4

Technically it's not a rainbow... Do you ever see black and white colors in a rainbow ? But, anyways, good job.
Reply
#5

Quote:
Originally Posted by Unte99
Посмотреть сообщение
Technically it's not a rainbow... Do you ever see black and white colors in a rainbow ? But, anyways, good job.
True, but you get the point xD.
Reply
#6

nice 5/10
Reply
#7

Nice, rep
Reply
#8

That's realy nice . HUH stealing an script from Eclips and releasing it .
Reply
#9

This is just a horrible way of doing it, and not to mention that you still gotta add dozens of lines to add more colors.

Here's a quick and simple way of doing it(and can change 127 random colors):

pawn Код:
new
    bool: gRainbow[MAX_PLAYERS] = {false, ...};

CMD:rainbow(playerid, params[])
{
    if(gRainbow[playerid])
    {
        SendClientMessage(playerid, -1, "You've disabled rainbow colors for your vehicle!");

        gRainbow[playerid] = false;
    }
    else
    {
        SendClientMessage(playerid, -1, "You've enabled rainbow colors for your vehicle!");

        gRainbow[playerid] = true;
    }
    return 1;
}

// Mode init
SetTimer("UpdateRainbow", 1000, true);

forward UpdateRainbow();
public UpdateRainbow()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i) || !IsPlayerInAnyVehicle(i) || gRainbow[i] == false)
            continue;

        ChangeVehicleColor(GetPlayerVehicleID(i), random(127), random(127));
    }
    return 1;
}
Reply
#10

Quote:
Originally Posted by -Prodigy-
Посмотреть сообщение
This is just a horrible way of doing it, and not to mention that you still gotta add dozens of lines to add more colors.

Here's a quick and simple way of doing it(and can change 127 random colors):

pawn Код:
new
    bool: gRainbow[MAX_PLAYERS] = {false, ...};

CMD:rainbow(playerid, params[])
{
    if(gRainbow[playerid])
    {
        SendClientMessage(playerid, -1, "You've disabled rainbow colors for your vehicle!");

        gRainbow[playerid] = false;
    }
    else
    {
        SendClientMessage(playerid, -1, "You've enabled rainbow colors for your vehicle!");

        gRainbow[playerid] = true;
    }
    return 1;
}

// Mode init
SetTimer("UpdateRainbow", 1000, true);

forward UpdateRainbow();
public UpdateRainbow()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i) || !IsPlayerInAnyVehicle(i) || gRainbow[i] == false)
            continue;

        ChangeVehicleColor(GetPlayerVehicleID(i), random(127), random(127));
    }
    return 1;
}
Excellent, I wanted also to say about the times, he's using 6 times instead of 1 and changing randomly the colors.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)