03.09.2015, 17:31
Fiz este sistema que te permite escolher as cores que os players terгo e ela й setada de forma randфmica.
PHP код:
new CORES [ ] = {
0x00FF80AA,
0x80FF00AA,
0xFFFFFFAA,
0x0080FFAA,
0x0080FFAA,
0x00FFFFAA,
0x0080C0AA,
0x8F20FFAA
};
public OnPlayerConnect(playerid)
{
new random1 = random( sizeof( CORES ) ) ;
SetPlayerColor(playerid, COLORS [ random2 ]) ;
return 1;
}