12.11.2012, 13:13
What about this?
pawn Код:
stock SetPlayerColor2(playerid)
{
new NumberOfColors, colorid;
NumberOfColors = sizeof(PlayerColors);
colorid = playerid;
while(colorid >= NumberOfColors)
{
colorid = colorid - NumberOfColors;
}
return SetPlayerColor(playerid, PlayerColors[colorid]);
}
public OnPlayerConnect(playerid)
{
SetPlayerColor2(playerid);
return 1;
}