I'm trying to check if the person that typed a message is the group/raid leader, but I can't get it to work :/
Here's the code:
PHP Code:
if ( (string.find(arg1, "RSounds globally turned off")) ) then
if (IsRaidLeader(arg2)) then
rss_aEnable = true;
elseif (IsRaidOfficer(arg2)) then
rss_aEnable = true;
end
end
I'm registering the event via
PHP Code:
this:RegisterEvent("CHAT_MSG_RAID");