Rust Legacy Notices on command

Discussion in 'Plugin Requests' started by EkzoSquad, Jun 7, 2016.

  1. Hello, can anyone make a plugin for players alerts with permissions?
    Example permission: cannotice
    Example command: /notice "Event Started! [ /warp to event ] for Start!"
    I think it is easy to write on .lua
    Screenshot
     
  2. Wulf

    Wulf Community Admin

  3. Rust Legacy ;)
     
  4. Wulf

    Wulf Community Admin

    Derp, not sure why I linked that one.
     
  5. @Spicy codded this,
    Code:
    def cmdPop(self, netuser, command, args):
            netusersteamid = rust.UserIDFromPlayer(netuser)
            if permission.UserHasPermission(netusersteamid, "canpop"):
                message = args
                new_message = ''
                for i in message:
                    new_message = new_message + ' ' + i
                rust.RunServerCommand("notice.popupall \"%s\"" % (new_message))
                print "%s sent popup message: %s" % (netuser.displayName, new_message)
            else:
                rust.Notice(netuser, "You do not have permission to use this command!", "✘", 4)
     
  6. Wulf

    Wulf Community Admin

    I linked the wrong plugin, see the above responses. ;)
     
  7. Ahhh... So sad