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
How to use authlevel OR permissions LUA
Discussion in 'Rust Development' started by k1lly0u, Aug 31, 2015.
-
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 endLast edited by a moderator: Aug 31, 2015 -
Thankyou very much, I'm still quite new at this
