16.09.2012, 10:05
Supposing that you have stored player team in
Код:
new gTeam[MAX_PLAYERS]
pawn Код:
//Whenever you want to select random player
new rP;
for(;;)
{
rP = random(GetMaxPlayers());
if(!IsPlayerConnected(rP) || gTeam[rP] != TEAM_DEFENDER) continue;
break;
}