root/uichat.py:
Search:
Add:
Code
- if len(text) >= 5 and text[0:4] == "/msg":
- args = text[5:].split(" ")
- if len(args) != 3:
- chat.AppendChat(1, "usage: /msg <player> <message>")
- return
- target = args[0].strip()
- message = " ".join(args[1:]).strip()
- if target != "" and message != "":
- net.SendWhisperPacket(target, message)
- else:
- chat.AppendChat(1, "usage: /msg <player> <message>")
- return
Usage: /msg <playername> <message>
Vllt für den ein oder anderen brauchbar