SA-MP Forums Archive
[FilterScript] C-RainbowCar - 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] C-RainbowCar (/showthread.php?tid=373308)



- C00K13M0N$73R - 30.08.2012

Features Commands Credits Bugs Video
http://www.xfire.com/video/5a6273/

Download


Re: C-RainbowCar - Cena44 - 30.08.2012

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


Re: C-RainbowCar - C00K13M0N$73R - 30.08.2012

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

Reduced the colors


Re: C-RainbowCar - Unte99 - 30.08.2012

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


Re: C-RainbowCar - C00K13M0N$73R - 30.08.2012

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.


Re: C-RainbowCar - NaBeeL[NxT] - 01.09.2012

nice 5/10


Re: C-RainbowCar - NicholasA - 23.12.2012

Nice, rep


Re: C-RainbowCar - M3mPHi$_S3 - 09.01.2013

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


Re: C-RainbowCar - -Prodigy- - 09.01.2013

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;
}



Re: C-RainbowCar - Konstantinos - 09.01.2013

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.