03.11.2010, 07:36
I want to random 5 players to be Zombie when Payday, How i do ? Thanks
// In the payday thing;
new count, selected[5];
while(count < 5)
{
new id = random(MAX_PLAYERS);
if(IsPlayerConnected(id))
{
if(selected[0] != id && selected[1] != id && selected[2] != id && selected[3] != id && selected[4] != id)
{
selected[count] = id;
count++;
}
}
}