[HELP] Car Colors
#1

We all know that the colors of the vehicles going up to 126, but discovered new colors to the 252, but has many blacks in the middle of these new colors, there are some means of removing the IDS black in this random command:

pawn Код:
CarColor(playerid)
{
    if (IsPlayerInAnyVehicle(playerid))
    {
        new rand = random(252)+0;
        new rand1 = random(252)+0;
        new iVehicleID = GetPlayerVehicleID(playerid);
        ChangeVehicleColor(iVehicleID,rand,rand1);
        //PlaySoundForPlayer(playerid, vr);
    }
    else
    {
        SendClientMessage(playerid,COR_VERMELHO,"[ERRO] Vocк nгo estб em um veнculo");
        PlaySoundForPlayer(playerid, erro);
    }
    return 1;
}
thx for help!


My english sucks, sorry.
Reply
#2

Any idea dudes?
Reply
#3

Really dudes, any idea? i have no new idea for this.

help-me plz!
Reply
#4

You will have to check each color, and if you don't want some of them, add them to the script like this:
if (rand == 175 || rand == 199 || rand == 12
ofc those above are just example numbers.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)