03.06.2010, 01:43
im confused on making every round gm starts how would i make it choose a random person to go to TEAM_0 my define<< i made one but was buggy and picking same person at a time-.-
new
Players[MAX_PLAYERS],
count;
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerTeam(i) == TEAM_0)
{
Players[count] = i;
count++;
}
}
}
new rand = sizeof(Players);
//Players[rand] would be the random player