Should work fine in MP up to a point, but it won't pick up respawned or JIP players (JIP players will see everyone, but no-one will see those that join after them). You will also see everyone Also, the number shown, if _sShowNumbers is true, won't necessarily be the person's group ID number, as assigned by ArmA in the command menu, if you have AIDisabled in the mission and not all slots are taken.
Don't take that as a criticism, though, since it was not designed for MP. If the MP is one-life COOP with no JIP, then it will be fine. Might even be "good enough", otherwise.