• 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Suggestion] Permissions
#1
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
  Reply
#2
please

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



I saw that today.. ??
  Reply
#5
You can do it yourself.
  Reply
#6
(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.
  Reply
#7
like bukkit permissions?

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

if (player[level] < 35) return;

doNothing();
Away
  Reply
#8
This was a while ago...sorry...was I stupid :3
Using Pawn.CMD?

If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
  Reply


Forum Jump: