foreach(new i: Player){ if(IsPlayerNPC(i)) { // codigo }}
Iterators:Player - List of all players connected.Bot - List of all bots (npcs) connected.NPC - Alias of Bot.Character - All players and bots.