Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot open.mp Questions and Suggestions [Suggestion] Permissions

 
  • 1 Vote(s) - 1 Average
Suggestion Permissions
Pinch
Offline

Burgershot Member
Posts: 391
Threads: 19
Joined: Apr 2019
Reputation: 22
Location: Belgrade, Serbia
#1
2019-06-09, 07:45 AM (This post was last modified: 2019-06-09, 07:46 AM by Pinch.)
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
qwerty
Offline

Banned
Posts: 61
Threads: 3
Joined: Apr 2019
#2
2019-06-09, 01:05 PM
please
no
Y_Less
Offline

Administrator

Posts: 323
Threads: 16
Joined: Feb 2019
Reputation: 90
#3
2019-06-09, 04:45 PM
Just use y_groups, it does exactly this already.
Pinch
Offline

Burgershot Member
Posts: 391
Threads: 19
Joined: Apr 2019
Reputation: 22
Location: Belgrade, Serbia
#4
2019-06-12, 07:40 AM
(2019-06-09, 04:45 PM)Y_Less Wrote: Just use y_groups, it does exactly this already.

I saw that today.. 🤭
Romzes
Offline

Burgershot Member
Posts: 8
Threads: 5
Joined: Apr 2019
Reputation: 8
#5
2019-06-17, 11:52 AM
You can do it yourself.
Sasino97
Offline

Software Developer
Posts: 108
Threads: 16
Joined: Apr 2019
Reputation: 7
Location: Tampa, FL
#6
2019-06-17, 01:16 PM
(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.
manul694 Away

Burgershot Member
Posts: 2
Threads: 0
Joined: May 2021
Reputation: 0
#7
2021-05-11, 12:14 PM
like bukkit permissions?
idk, yeah, god idea, but u can just cancelling command:
if (player[level] < 35) return;
doNothing();
Pinch
Offline

Burgershot Member
Posts: 391
Threads: 19
Joined: Apr 2019
Reputation: 22
Location: Belgrade, Serbia
#8
2021-05-11, 09:15 PM
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.
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode