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.
If you will notice he said the "5165" source wicth is all iniQuote:
Should be (add this before the command)
if (Status == 8 ).
Or something similare.
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 { }
}