Still kinda confused maybe this will help idk really
PHP Code:
new iPlayers[32], iNum;
get_players( iPlayers, iNum, "che", "TERRORIST" )
new iRandomPlayer = iPlayers[random( iNum )];
get_players( iPlayers, iNum, "ch" )
for( new i = 0; i < iNum; i++ )
{
case(iPlayers[i])
{
case iRandomPlayer:
{
// Do stuff to random player
}
default:
{
// Do stuff to ALL other players
}
}
Note:
Idk: why you are doing this
Code:
randPlayer = Players[ i ];
In a loop alfter you already selected a random player, this will pretty much do the same thing to all players and ignore the randomPlayer you choose, as its is overwritten.