SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 09/06/2010, 10:36 PM   #41
v0nz
Huge Clucker
 
v0nz's Avatar
 
Join Date: May 2009
Posts: 251
Reputation: 0
Default Re: [FS] Rainbow Car.

Quote:
Originally Posted by [EL-RP
Johnny ]
Quote:
Originally Posted by FlameGod
2/10 really easy to make it... just 2 publics and 1 timer on player command...

Im guessing you didnt read the rest of the topic, because people here dont like people liek you who think that it is super easy to do everything and that the people who made the script suck... so get ready to be flamed by the other peoplez
+1

Quote:
Originally Posted by Tɧ϶ TσηίÖ
Cool. And whats the song name? sounds catchy.
Shipping off to Boston - Dropkick Murphys
v0nz is offline   Reply With Quote
Old 10/06/2010, 03:48 AM   #42
Toni
High-roller
 
Toni's Avatar
 
Join Date: Aug 2009
Location: United States
Posts: 1,535
Reputation: 154
Default Re: [FS] Rainbow Car.

I set the timer to 50 lol, pretty fast. Not sure if it will kill my server, if anyone knows please tell me


& if more then 1 person does it, it only does it for the person who does /rainbowcar most recently, I'll try inserting a loop for all players tomorrow.
__________________
Toni is offline   Reply With Quote
Old 10/06/2010, 07:07 AM   #43
andreyeu2007
Big Clucker
 
Join Date: Aug 2008
Posts: 58
Reputation: 0
Default Re: [FS] Rainbow Car.

Interesting !
andreyeu2007 is offline   Reply With Quote
Old 14/06/2010, 05:26 PM   #44
rbN.
Banned
 
Join Date: Jan 2010
Location: fissa
Posts: 1,639
Reputation: 289
Default Re: [FS] Rainbow Car.

Quote:
Originally Posted by FlameGod
2/10 really easy to make it... just 2 publics and 1 timer on player command...
Oh god. Your the master scripter man.. God, your epic dude.. Whao, I feel the epicness coming.

anyways, now seriously.. If you really have that big mouth, make it then from scratch.. I want to see it first with my own eyes, before I believe your post .
rbN. is offline   Reply With Quote
Old 14/06/2010, 06:38 PM   #45
Nick Deeds
Big Clucker
 
Join Date: Mar 2010
Posts: 166
Reputation: 0
Default Re: [FS] Rainbow Car.

Nice dude!
Nick Deeds is offline   Reply With Quote
Old 13/01/2012, 12:40 PM   #46
vtbgh
Little Clucker
 
Join Date: Sep 2010
Posts: 10
Reputation: 0
Default Re: [FS] Rainbow Car.

lol bug. only 1 player can use rainbow
vtbgh is offline   Reply With Quote
Old 13/01/2012, 01:49 PM   #47
Min
Big Clucker
 
Min's Avatar
 
Join Date: Jul 2010
Location: \_(o_o)_/
Posts: 113
Reputation: 22
Default Re: [FS] Rainbow Car.

Hmm, not bad
Min is offline   Reply With Quote
Old 13/01/2012, 01:52 PM   #48
geerdinho8
Gangsta
 
geerdinho8's Avatar
 
Join Date: Mar 2009
Posts: 710
Reputation: 45
Default Re: [FS] Rainbow Car.

It may be easy to script, but it is an kind of unique, haven't seen this before!
__________________


geerdinho8 is offline   Reply With Quote
Old 26/02/2012, 04:09 AM   #49
titanak
Huge Clucker
 
titanak's Avatar
 
Join Date: May 2010
Location: Estonia
Posts: 376
Reputation: 16
Default Re: [FS] Rainbow Car.

is it not easyer to do like this:

to give some command set PlayerRainBowCar[GetPlayerVehicleID(playerid)] = 1055;
and here you go lol?

pawn Code:
new PlayerRainBowCar[MAX_VEHICLES];
forward UpdateRainbowCar();

OnGamemodeinit
pawn Code:
SetTimer("UpdateRainbowCar",200,1);
pawn Code:
public UpdateRainbowCar()
{
    new randomz = random(120);
   
    for(new i = 0; i < MAX_VEHICLES;i++)
    {
        if(PlayerRainBowCar[i] == 1055)
        {
            ChangeVehicleColor(i,randomz,randomz);
        }
   
    }
    return 1;
}
titanak is offline   Reply With Quote
Old 26/02/2012, 04:28 AM   #50
-Prodigy-
Huge Clucker
 
Join Date: Dec 2010
Posts: 418
Reputation: 45
Default Re: [FS] Rainbow Car.

No need for all that ^

pawn Code:
new
    bool: gHasRainbow[MAX_PLAYERS] = {false, ...};

SetTimer("ChangeCol", 200, true);

CMD:rainbow(playerid, params[])
{
    if(gHasRainbow == true)
    {
        gHasRainbow = false;
        SendClientMessage(playerid, -1, "You've turned rainbow color changing on!");
    }
    else
    {
        gHasRainbow = true;
        SendClientMessage(playerid, -1, "You've turned rainbow color changing on!");
    }
    return 1;
}

forward ChangeCol();
public ChangeCol()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i)) continue;
       
        if(gHasRainbow[i] == true && IsPlayerInAnyVehicle(i))
        {
            ChangeVehicleColor(GetPlayerVehicleID(i), random(252), random(252));
        }
    }
}
-Prodigy- is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rainbow Hydra rafay Screenshots and Videos 25 04/08/2011 07:51 PM
[Include] [INC]: Rainbow. [NYRP]Mike. Includes 3 04/06/2010 02:48 AM
How to make an Rainbow System? [WSM]Deadly_Evil Help Archive 17 13/02/2010 07:01 AM


All times are GMT. The time now is 06:44 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.