Code:
def __SendChatPacket(text, type):
if net.IsChatInsultIn(text):
chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_INSULT_STRING)
else:
name = player.GetName()
if type == chat.CHAT_TYPE_SHOUT:
if name.find("[") !=-1:
empire_id = "|cFFFF6600|H|h[Staff]|cFFA7FFD4|H|h"
else:
empire_id = str(net.GetEmpireID())
if empire_id == "1":
empire_id = "|cFFFF0000|H|h[Rouge]|cFFA7FFD4|H|h"
elif empire_id == "2":
empire_id = "|cFFFFFF00|H|h[Jaune]|cFFA7FFD4|H|h"
elif empire_id == "3":
empire_id = "|cFF0080FF|H|h[Bleu]|cFFA7FFD4|H|h"
text = empire_id + name + text
net.SendChatPacket(text, type)
That should be you your full code. Maybe it works if you delete the '
self' in 'def __SendChatPacket(
self,text, type):'
and add '+ name' in the penultimate line.
If that doesn't work you need to find the code wich defines that the 'playername' gets printed out before and delete this part and add also the '+name' in the line 'text = empire_id + text'