28.09.2010, 18:16
bota um timer que a cada certo tempo ele seta a cor ...
EDIT:
EDIT:
pawn Code:
SetTimer("MudarCor", 1000, true);//OnGameModeInit
//Fora de publics \/
new CORES = [39][]
{
0xC715FFFF,
0x20B2AAFF,
0x33FF33AA,
0x6495EDFF,
0xf0e68cFF,
0x778899FF,
0xFF1493FF,
0xF4A460FF,
0xEE82EEFF,
0xFFD720FF,
0x8b4513FF,
0x4949A0FF,
0x148b8bFF,
0x14ff7fFF,
0x556b2fFF,
0x0FD9FAFF,
0x10DC29FF,
0x534081FF,
0x0495CDFF,
0xEF6CE8FF,
0xBD34DAFF,
0x247C1BFF,
0x0C8E5DFF,
0x635B03FF,
0xCB7ED3FF,
0x65ADEBFF,
0x5C1ACCFF,
0xF2F853FF,
0x11F891FF,
0x7B39AAFF,
0x53EB10FF,
0x54137DFF,
0x275222FF,
0xF09F5BFF,
0x3D0A4FFF,
0x22F767FF,
0xD63034FF,
0x9A6980FF,
0xDFB935FF,
0x3793FAFF
};
forward MudarCor();
public MudarCor()
{
new rand = random(sizeof(CORES));
TextDrawColor(sDataGM[Fundo], CORES[rand][0]);
return 1;
}