Getting member role when using DCC_On_MessageCreate to send messages to the game?
FSH1999 opened this issue · comments
In short, when sending messages, an administrator role appears if said member has it.
Can I use DCC_FindRoleByName and GetRoleName to do it?
In short, when sending messages, an administrator role appears if said member has it.
Can I use DCC_FindRoleByName and GetRoleName to do it?
You could use this native instead for checking Role
native DCC_HasGuildMemberRole(DCC_Guild:guild, DCC_User:user, DCC_Role:role, &bool:has_role);
In short, when sending messages, an administrator role appears if said member has it.
Can I use DCC_FindRoleByName and GetRoleName to do it?You could use this native instead for checking Role
native DCC_HasGuildMemberRole(DCC_Guild:guild, DCC_User:user, DCC_Role:role, &bool:has_role);
Thank you, I had not tried that native.
The messages are from discord to the samp server, so when writing a message in the discord chat it would be accompanied by a role of server administrator, not all the ones that user has.