04.09.2009, 18:32
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:
thx for help!
My english sucks, sorry.
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;
}
My english sucks, sorry.