28.09.2010, 15:26
Use something equal to Mike Peterson's variable, then use random() to pick a random color from it - easy as pie.
Example:
Example:
pawn Код:
new
myColors[ number_of_colors ] =
{
here, put, the, colors, in, one, by, one
};
pawn Код:
new
iRandom = random( sizeof( myColors ));
ChangeVehicleColor( vehicleid_here, myColors[ iRandom ], myColors[ iRandom ] );