[FilterScript] [CCC] (RainBow) ChangeCarColor
#1

ChangeCarColor

Код:
Objective Change the color of the vehicle randomly.
Код:
List of available commands /rainbow : Enables or disables the effect of color change.
Video

[ame]http://www.youtube.com/watch?v=v4QTPUxcU6Y[/ame]
Download


Ce script est mis а disposition selon les termes de la licence
Creative Commons Attribution - Pas d'Utilisation Commerciale - Pas de Modification 4.0 International


Reply
#2

Good work!
Reply
#3

Add pic'please
Reply
#4

Pictures Added, i upload a video.
Reply
#5

Good work.
Reply
#6

Vidйo added. Thanks, +rep
Reply
#7

its a good idea but you can improve that.

look:

pawn Код:
/*
Fait par Christopher # Kiki_Readon # Kiki53
CCC [ChangeCarColor]
*/

 
#include <a_samp>
 
forward RainBowColor(playerid);
 
new RainBowColor1;
new RainBow[MAX_PLAYERS];
 
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/rainbow", true) == 0)
    {
        if( !IsPlayerInAnyVehicle( playerid ) )
            return SendClientMessage( playerid, -1, "Not such a vehicle!" );
       
        RainBow[playerid] = RainBow[playerid] == 0 ? 1 : 0;
        SendClientMessage(playerid, -1, RainBow[playerid] == 1 ? ("RainBow activated") : ("Rainbow off"));
        RainBowColor(playerid);
        return 1;
    }
    return 0;
}
public RainBowColor(playerid)
{
    if(RainBow[playerid] == 1)
    {
        ChangeVehicleColor(GetPlayerVehicleID(playerid), -1, -1);
        RainBowColor1 = SetTimerEx("RainBowColor", 500, 0, "d" ,playerid);
    }
    else KillTimer(RainBowColor1);
    return 1;
}
and can be improved more.
Reply
#8

Thank you very much, I really did not know this function.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)