Once again, thx for the reply.
However there is a small problem. I want to check if the person is in the same guild OR party/raid as me. But this script checks if he is both in the same guild AND party/raid as me, right?
I tried to change
Code:
if unit and GetGuildInfo(unit)==GetGuildInfo("player") then
to
Code:
if unit OR GetGuildInfo(unit)==GetGuildInfo("player") then
But that resulted in an error message (complaining about the use of GetGuildInfo("unit"), which makes sense since "unit" is returned from NameIsGrouped()..