10.03.2012, 06:27
Here you have:
pawn Код:
//creating new array
new Colors[] =
{
0x0BE3F4FF, // Color1
0x0D52F2FF, // Color2
0xFF8000FF, // Color3
0x0FAAF4FF // Color4
};
public OnPlayerConnect(playerid)
{
//randoming array
new randomcolors = random(sizeof(Colors));
//Now use randomcolors in any codes like
SendClientMessage(playerid, Colors[randomcolors], "Welcome player" );
return 1;
}