-
Posts
22 -
Joined
-
Last visited
Content Type
Profiles
Warranty Claims
Downloads
Forums
Store
Services
Downloads Plus Support
DOWNLOADS EXTRA
Everything posted by Yunkady
-
- 144 comments
-
- #craft
- #craft menu
- (and 17 more)
-
When reviewing the plugin, filtering was added to the display of skins: if (skin.activPermission && !ins.permission.UserHasPermission(player.UserIDString, $"craftingpanel.{currentItem.parentSection}.{currentItem.permission}.{skin.permission}")) continue; Now if the player does not have rights to the skin of the item, the player does not see it. The output of sections was reviewed, which is displayed only when the player has the privilege. In a similar way, I wanted to change the display of items in the section without violating the logic of your code, but apparently I am missing something. To the output of items, I added filtering by the entire condition in void item, redefined the list of available items (that is, all items are also initialized when loading the plugin, but should not be displayed by filtering if there are no permissions). Unfortunately, my knowledge of the code and the experiment to improve the plugin ended, all the items are still displayed in their sections, to which the player has permission and which he does not.
- 144 comments
-
- #craft
- #craft menu
- (and 17 more)
-
I have this plugin, which has sections, items, and item skins. You can set privileges on sections, items, and item skins, which are then given to the player. If a player has a privilege, then he is allowed to use (craft) a section, an item, or an item skin. The plugin looks like this: if the player has the privilege of a section, then the section is displayed to him, if it does not, then it is not displayed. Each section has a list of items: if the player has a privilege, he can craft these items, if there is no privilege, then a little noticeable icon appears that cannot be crafted. Each item can have a skin: if the player has a privilege, then he can craft this skin, if not, then the item is unsightly blocked and the player cannot craft it. Is it possible to add such a feature so that items and their skins, to which the player has no privilege, are not displayed anywhere, but as soon as the privilege appears, they are displayed?
- 144 comments
-
- #craft
- #craft menu
- (and 17 more)
-
Failed to initialize plugin 'PlayerPings v1.0.3' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.PlayerPings.Init () [0x00084] in <7ffe65d9f022483a8e78ad97398157fa>:0 at Oxide.Plugins.PlayerPings.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00038] in <7ffe65d9f022483a8e78ad97398157fa>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <795304323ac74a298b8ed190a1dfa739>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <beb2b64691c64e2b95b99491bd85442c>:0 at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00043] in <beb2b64691c64e2b95b99491bd85442c>:0
-
- 144 comments
-
- #craft
- #craft menu
- (and 17 more)
-
- 144 comments
-
- #craft
- #craft menu
- (and 17 more)
-
- 201 comments
-
- 1
-
-
- #stacks
- #rust stacks
- (and 22 more)
-
- 201 comments
-
- #stacks
- #rust stacks
- (and 22 more)
-
- 201 comments
-
- #stacks
- #rust stacks
- (and 22 more)
-
- 201 comments
-
- #stacks
- #rust stacks
- (and 22 more)
-
- 201 comments
-
- #stacks
- #rust stacks
- (and 22 more)
