Cant understand why this wont work :S

Explote

New Member
Jun 3, 2011
26
0
RP Emulator, Government is group ID 9, so I changed this to allow everybody in gov corp to send a hotel alert.

Original
Code:
  #region :ha <msg>
                    case "ha":
                        if (!Session.HasRight("hotel_admin"))
                        {
                            return false;
                        }
                        string Msg = Input.Replace(Bits[0].ToLower(), "");
                        SessionManager.BroadcastPacket(UserAlertModernComposer.Compose("Important Message", Msg));
                        break;
                    #endregion

What I edited it to
Code:
  #region :ha <msg>
                    case "ha":
                        if (Session.CharacterInfo.Working == 1 && Session.CharacterInfo.GroupID == 9)
                        {
                            return false;
                        }
                        string Msg = Input.Replace(Bits[0].ToLower(), "");
                        SessionManager.BroadcastPacket(UserAlertModernComposer.Compose("Important Message", Msg));
                        break;
                    #endregion

Wont allow anybody hired into 9 permission to send a hotel alert. Any help would be appreciated
 

Users who are viewing this thread

Top