[Tutorial] Add custom command (SYSTEM)

Status
Not open for further replies.
Junior Spellweaver
Joined
Mar 19, 2011
Messages
129
Reaction score
7
I have no idea if it was already released so if its not
No problem haha :P

How to make it work :

GameServer -> Networking -> Virtual Objects -> User -> VirtualUser.CS * line 757 *

Place this code :

PHP:
                    case "system":
                        {
                            if (Rank < 6) return true;

                            foreach (virtualUser Player in UserManager.getAllUsers())
                            {
                                Player.send(new PACKET_CHAT("SYSTEM", PACKET_CHAT.ChatType.Room_ToAll, "SYSTEM >>" + Command.Substring(7), 999, "Server"));
                            }

                            return true;
                        }

Save / Build solution!

screenshot - [Tutorial] Add custom command (SYSTEM) - RaGEZONE Forums

Enjoy ^^

*what does this do ?*

When you type : /system fkthis

everyone in the chat *also for the people who are already ingame*
they will see in the Chat area

SYSTEM: fkthis :P
 
Last edited:
Status
Not open for further replies.
Back