ItsMods

Full Version: Permission plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Features:
This plugin allows server admins to have control over who can use which commands. For example, you can only allow admins to play with 90 fov*, or let moderators only see their ping**.

Why?:
It's annoying for server admins to have to set up xuids in every plugin. And this allows moderators, helpers and even donators to get some more features then a normal player. (It works the same way in Minecraft with Bukkit)

Requirements:
@Nukem's dedicated server addon 1.190+

Changelog:
v1.0 BETA: initial release
v1.1 BETA: Updated to .NET 3.0 (Linux support). Now requires addon 1.190+

Usage (for players):
Code:
!help // Shows the commands you can use.
!gettype // See what user type you are (for example admin, moderator or user).
!getxuid // See your xuid, useful for admins to setup their server.

Usage (For server admins):
Put aaaPermissionPlugin.dll in your servers /plugin/ folder (NOTE: DO NOT RENAME THE PLUGIN!).
Now go to your sv_config.ini and paste the following code, now change everything to your liking. You can add custom groups by adding them after User in the "Usergroups=" line, then add a "<NewGroupName>_xuids=" line and put xuids after it, when you've done that you must add "<NewGroupName>_commands=" and put commands after it.
Code:
//Don't add spaces after commas!
//CASE SENSITIVE!
//Don't remove the User & Admin groups!
[Permission]
//You can add more user groups here
Usergroups=Admin,Moderator,User
//Add admin xuids here (Go ingame and use !getxuid)
Admin_xuids=xuid1,xuid2,xuid3
//Admins can use all commands (Do not change!).
Admin_commands=*ALL*
//Add moderator xuids here
Moderator_xuids=xuid1,xuid2,xuid3
//Add commands moderators can use here
Moderator_commands=!help,!getxuid,!gettype
//Add commands everyone can use
User_commands=!help,!getxuid,!gettype
//Everyone who isn't in any other group is a user (Do not change!).
User_xuids=*EVERYONE*
Now start your server.

Usage (For plugin developers):
Nothing. Just don't add any 'IsPlayerAdmin' checks yourself. Basically, if this plugin isn't installed, everyone can use the commands.

Credits:
@Pozzuh - Made the plugin

Source:

*Note: 90 fov not included in this plugin, use @zxz0O0's plugin.
**Note: Ping viewer not included in this plugin, use my other plugin.

Please report bugs!
Why is it the rcon not supported?
nvm i get it
(01-06-2012, 19:28)iAegle Wrote: [ -> ]Why is it the rcon not supported?

because you have your own xuid check to see if the player is admin.
Everyone should use this so please sticky
Done
(01-06-2012, 19:28)iAegle Wrote: [ -> ]Why is it the rcon not supported?
nvm i get it

Mind sharing the sourceszzszszs?

/facepalm

source in spoiler lol
(01-06-2012, 19:51)Pozzuh Wrote: [ -> ]
(01-06-2012, 19:28)iAegle Wrote: [ -> ]Why is it the rcon not supported?
nvm i get it

Mind sharing the sourceszzszszs?

/facepalm

source in spoiler lol

stop bullying retarded people ;(

This should be in nukems plugin by default.
(01-06-2012, 19:52)iAegle Wrote: [ -> ]This should be in nukems plugin by default.

I agree.
> [Release] + Pozzuh = impossibru!
(01-07-2012, 09:30)Rendflex Wrote: [ -> ]> [Release] + Pozzuh = impossibru!

But what about http://www.itsmods.com/forum/Thread-Rele...ntGOD.html
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21