[Question]How to make CMDs for GMs or PMs

12/07/2009 17:44 airborne.#1
How do I make some cmds work for GMs but not PMs? On source 5165? I'm trying to change /remove halo and /add halo for GMs only.
12/07/2009 18:39 renetjuuh#2
i got the same question for the same patch , i wanted to know how to make commands to:p and were i can find them
12/07/2009 18:43 ~*NewDuuDe*~#3
Should be (add this before the command)
if (Status == 8 ).
Or something similare.
12/07/2009 20:12 rocka7x#4
have a look in chat.sc file.. not much help but thats where all the other commands are
12/07/2009 20:17 Hitsugaya Toshiro#5
Quote:
Originally Posted by BERGHUIS1 View Post
Should be (add this before the command)
if (Status == 8 ).
Or something similare.
If you will notice he said the "5165" source wicth is all ini
So if he want to make GM PM commands it would be a lil like this

Code:
if (GC.AuthInfo.Status == "[GM]" || GC.AuthInfo.Status == "[PM]")
                    {
                        if (GC.AuthInfo.Status == "[PM]")
                        {
                            if (Cmd[0] == "/day")
                            {
                                Game.World.ScreenColor = 0;
                                foreach (Game.Character C in Game.World.H_Chars.Values)
                                    try
                                    {
                                        C.MyClient.AddSend(Packets.GeneralData(C.EntityID, Game.World.ScreenColor, 0, 0, 104));
                                        GC.LocalMessage(2011, "Haa day has arrived good morning everyone");
                                    }
                                    catch { }
                            }
Thats how it would be for a GM and fix it to be PM