color rand
#1

i have new ColorsAlpha[400]={400 colors}
i have on playerconnect SetPlayerColor(playerid, ColorsAlpha[playerid]);
it compiles good , but when i connect , or every player does , it gives me a alpha green ! not random , how i want! what to do?
Reply
#2

pawn Код:
public OnPlayerConnect(playerid)
{
new random = random(sizeof(ColorsAlpha));
SetPlayerColor(playerid, ColorsAlpha[random]);
}
That should work.
Reply
#3

ya , that's working thx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)