open.mp forum
[Suggestion] Permissions - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: open.mp (https://forum.open.mp/forumdisplay.php?fid=40)
--- Forum: Questions and Suggestions (https://forum.open.mp/forumdisplay.php?fid=42)
--- Thread: [Suggestion] Permissions (/showthread.php?tid=648)



Permissions - Pinch - 2019-06-09

Hmmm, I'm wondering is it possible to create (built-in ) permissions system to open.mp ( yeah, just like in MINECRAFT )

Like


Code:
native AddPermissionGroup("permgroup");
native AddPermissionTree("permgroup", "perm");
native AddPermissionToGroup(groupid, "permission");
native AddGroup(groupName);
native AddPlayerToGroup(playerid, groupName);



And sth like that, ask why?

We can use FS's without actually modifying code like to adapt CMD_PERM_ADMIN or pAdmin and shit like that, instead we can just:

/creategroup Admin
/setgperm Admin permission.cmd.* ( * - all perms from .cmd group, first native )
/setgtoplayer [ Player ] [ Group ]

permission.groupname.perm
permission.fsname.perm

and stuff like that, I hope you understand me :D


RE: Permissions - qwerty - 2019-06-09

please

no


RE: Permissions - Y_Less - 2019-06-09

Just use y_groups, it does exactly this already.


RE: Permissions - Pinch - 2019-06-12

(2019-06-09, 04:45 PM)Y_Less Wrote: Just use y_groups, it does exactly this already.



I saw that today.. ??


RE: Permissions - Romzes - 2019-06-17

You can do it yourself.


RE: Permissions - Sasino97 - 2019-06-17

(2019-06-17, 11:52 AM)Romzes Wrote: You can do it yourself.



?



Plus, it's something that would add extra functions outside of the scope of what the API should do. For example, SA-MP did the same with SetPlayerTeam and the other team natives, things which?are not?supposed to be offered by the API.


RE: Permissions - manul694 - 2021-05-11

like bukkit permissions?

idk, yeah, god idea, but u can just cancelling command:

if (player[level] < 35) return;

doNothing();


RE: Permissions - Pinch - 2021-05-11

This was a while ago...sorry...was I stupid :3