Dateien

> > CS2D > Lua Scripts > [ADMN, DEV] Permissions - WIP
DateiübersichtCS2D-ÜbersichtLua Scripts-Übersicht

Englisch [ADMN, DEV] Permissions - WIP >

18 Kommentare14 kb, 576 Downloads

alt [ADMN, DEV] Permissions - WIP

VADemon
User Off Offline

[Admininstration, Developer Tools] Permissions

Do you really think you've a good admin management with customizable rights? I am LOLing at you

With Permissions you don't need to write own admin management like here
or even user Happy Camper's work file cs2d HC Admin Script 1.9.3 where you only have 4 different groups (oh, sweet )
or file Datei existiert nicht (12800) where you have 10 different groups.


In general:
At the moment, scripters need to code their own admin management, admins have to edit directly the scripts files to give/remove rights.
This is unflexible and hard, that's where Permissions come into play
IMG:https://i.imgur.com/2rZonNM.jpg

∗ What's so good about Permissions?
For Admins:
You decide which commands users can use. Everything is done in Permissions, you don't need to touch other scripts.

For Scripters:
No need to waste your time writing own rights management! Permissions does everything for you, a single function call is enough.

∗ How it works:
There are groups, there are users and now there are permission nodes. Scripters tell which permission node is used for a command in their script and then admins simply grant the permission to a specific user or group so they can use the command.

∗ Features: ∗

• Flexibility: unlimited groups and users
• Multiple groups per user
• Inheritance: don't need to add same permissions to all groups
> Example: group [Admin] can additionally have all nodes from groups [newbie], [member] and [moderator]
• High performace: no problems with >9000 permission nodes per user
• Per-map permissions

By far that's only a handful of features and usages of Permissions. The default config also contains prefixes and suffixes that can be used by chat scripts. Permissions can even be used as config for other scripts

∗ Setup Permissions:
Put the contents of archive into autorun folder
Edit the config in /Permissions/config/permissions.lua as you wish

∗ Information for scripters:
How to use >


Every time you look at the code 100 cute kittens die a painful death.
> Don't mind the shitty code
1× editiert, zuletzt 29.06.14 21:31:48
Zugelassen von Yates

Download Download

14 kb, 576 Downloads

Kommentare

18 Kommentare
Zum Anfang Vorherige 1 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen

alt

Inflexion
User Off Offline

Anyways, you copied it from PermissionsEx
Noice.
Ich mag es!

alt

AlcatrazZ
BANNED Off Offline

Wat? I have better group rank system
I can add a rank and permissions in config by function file hue and more...

EDIT:
permissions.create.group(name, parent)

Oh, but you still have a fuck*d config file. I have simpler.
Ich mag es!
2× editiert, zuletzt 01.07.14 21:54:17

alt

VADemon
User Off Offline

@user _Yank: If I weren't lazy, it would also be finished by today

alt

_Yank
User Off Offline

@user VADemon: If this were released earlier it would be a success. VADeamon Permissions configs would replace admin scripts
Ich mag es!

alt

Staming
User Off Offline

I would like you to be moderator.
Ich mag es!

alt Omg!

DatRat
User Off Offline

WOWOWOWOWOOWWOWOWOW...
Its MUST HELP EVERY WHERE
Ich mag es!

alt

Starkkz
Moderator Off Offline

I like the idea.
Ich mag es!

alt

Deleted
User Off Offline

Good job .
Ich mag es!

alt

JustKill
User Off Offline

Good script
Ich mag es!

alt

VADemon
User Off Offline

user MikuAuahDark everything is global, but per-map configuration overrides global configuration.
I need more time to improve the description, but current priorities are like this:

groups < per-map < team (upcoming) < user

So groups are kinda the lowest rank among permissions and user is the highest

alt

MikuAuahDark
User Off Offline

does the configuration can set the permission to all maps?

bdw nice anyway.
Ich mag es!

alt

_Yank
User Off Offline

I wont use it or anything but it stills a very nice script.
Good work
Ich mag es!

alt

ohaz
User Off Offline

Awesome. Will definitely use it when I need a permission system next time
Ich mag es!

alt

VADemon
User Off Offline

@user mafia_man: You wrote your own permissions system. Good. If I was about to create a 20 line long script (in this example I am new to Lua etc.), why should I care about making my own system? I'd rather "outsource" this work to an external script.

Prefixes and suffixes: Permissions only acts as a storage there, so any script can access and use the options.

alt

mafia_man
User Off Offline

Zitat
At the moment, scripters need to code their own admin management, admins have to edit directly the scripts files to give/remove rights.
This is unflexible and hard, that's where Permissions come into play

That is not true, some of them like me wrote their own permissions system, and dynamic commands which you can modify without restarting server like me.

Instead of prefixes and suffixes you should use chat format string. Example:
1
"©255255255ש255242000VIP©255255255× ©255242000%PLAYERNAME%©255255255: %text%",

alt

Hellcat
GAME BANNED Off Offline

It is beautiful and useful.
Ich mag es!

alt

TrialAndError
User Off Offline

Easy to use √
Easy to edit √
Easy to find lines √
Like √
Ich mag es!
Zum Anfang Vorherige 1 Nächste Zum Anfang