22.07.2009, 20:04
that every 1 second the vehice will changehis color from a random colors
tanks for helpers
tanks for helpers
// add this in OnGameModeInit
SetTimer("ChaneColor", 1000, true);
forward ChangeColor();
public ChangeColor()
{
new cRandom;
cRandom = random(8);
SetVehicleColor(vehicle id, cRandom);
return 1;
}
// add this in OnGameModeInit
SetTimer("ChangeColor", 1000, true);
forward ChangeColor();
public ChangeColor()
{
new cRandom;
cRandom = random(8);
SetVehicleColor(vehicle id, cRandom);
return 1;
}
Originally Posted by xClumx``
pawn Код:
|
Originally Posted by nuriel8833
tanks but how can i add random colors and where i shoult put them?
and what is the line to change vehicle color? |
Originally Posted by nuriel8833
but what lines should i put in the random to make the colors change
|