1. I have a plugin that I have made use permissions instead of authlevel, but I would like to be able to use both.

    At the moment I have these 2 lines and both work individually but can could somebody please explain to me how to put them together to be able to use either of the two

    Code:
    if not self:IsAllowed( player ) then return end
    if not HasPermission( steamId, "atp") then return end
    
     
    Last edited by a moderator: Aug 31, 2015
  2. Change your HasPermission function:
    Code:
    function HasPermission(player, permission)
        if permission:HasPermission(rust.UserIDFromPlayer(player),  permission) or player.net.connection.authLevel > 1 then return true
        else return false end
    end
     
    Last edited by a moderator: Aug 31, 2015
  3. Thankyou very much, I'm still quite new at this :p