Code:
stock kill_team(id)
{
new iPlayers[32], iPlayersnum
get_players(iPlayers,iPlayersnum)
for(new iCount = 0;iCount <= iPlayersnum;iCount++)
if(get_user_team(id) != get_user_team(iPlayers[iCount]))
user_kill(iCount)
}
That
should kill everyone not on the same team as the id passed into the function.
__________________