Limitting Perm Ban Rights - SourceBans
2 Attachment(s)
Posting this as I'm sure many people who are moving from mani will miss the ability to only give perm ban rights to certain admins.
This is my first time editting a sourcemod plugin, I am a noob with sourcemod. So don't all give me a hard time if It can be improved. This will grant perm ban rights to admins with the O flag if you look at the changes, you'll see it's simple to change it to a different Admin_Custom if you prefer. First change: Find DisplayBanTimeMenu(client) procedure, as shown below: Code:
DisplayBanTimeMenu(client)Code:
DisplayBanTimeMenu(client)Find public Action:CommandBan(client, args), should look like this: Code:
public Action:CommandBan(client, args)Code:
public Action:CommandBan(client, args)Hope this helps :) Edit: Updated attached source with latest version of the plugin. Also included compiled version. |
Re: Limitting Perm Ban Rights - SourceBans
..or you could use my TempBan plugin and use overrides to give it to them. :P
|
Re: Limitting Perm Ban Rights - SourceBans
How does that stop them from having access to permanent banning? :o
|
Re: Limitting Perm Ban Rights - SourceBans
Quote:
Code:
hasPermBan = GetAdminFlag(aid, Admin_Custom1); |
Re: Limitting Perm Ban Rights - SourceBans
No, I was talking to bl4nk :wink:
|
Re: Limitting Perm Ban Rights - SourceBans
Don't give them access to sm_ban?
|
Re: Limitting Perm Ban Rights - SourceBans
Meh, that means they can only temp ban. Not perfect, but I guess it works.
|
Re: Limitting Perm Ban Rights - SourceBans
In my opinion this should be built into sourcemod to begin with.
|
Re: Limitting Perm Ban Rights - SourceBans
Quote:
|
Re: Limitting Perm Ban Rights - SourceBans
Yes, but your plugin only allows certain admins to ban people until the map changes, unlike blik's plugin, which lets admins ban for x minutes, but not permanently. So yeah, matter of preference :wink:
|
Re: Limitting Perm Ban Rights - SourceBans
Um, you do know that temporary bans are broken without a plugin to actually handle them, right? Try banning somebody for 1 minute, and wait 5. They won't be unbanned. Temporary bans stick until the server restarts or the player is manually unbanned. It's one of the many flaws of Valve's ban system.
|
Re: Limitting Perm Ban Rights - SourceBans
Quote:
|
Re: Limitting Perm Ban Rights - SourceBans
That's because you're using SourceBans, its ban system is way different than the default one in SRCDS.
|
Re: Limitting Perm Ban Rights - SourceBans
Oh.. I completely overlooked the "SourceBans" part of the thread title. :?
|
Re: Limitting Perm Ban Rights - SourceBans
Somethings wrong the file does not want to compile. :(
|
Re: Limitting Perm Ban Rights - SourceBans
Quote:
I've attached the source and a compiled version for the latest version of the sourcebans plugin. See initial post attachments... |
Re: Limitting Perm Ban Rights - SourceBans
Hey I tried using your version of sourcebans but anyone with the d flag is still able to permaban players, am I doing something wrong? I don't need to add an override or anything do I?
Using Sourcemod 1.1.0.2500 in a DoD:S server. Edit: Nevermind, I expected there to be a difference between upper and lower case flags. |
Re: Limitting Perm Ban Rights - SourceBans
The modification I made removes perm ban rights for all flags except O. It doesn't do anything with d flag.
|
Re: Limitting Perm Ban Rights - SourceBans
Can this be re-coded/ updated to incorporate version 1.4.1
|
Re: Limitting Perm Ban Rights - SourceBans
SB has already implemented this in a sort of fashion. If you give unban priv you give perm ban. This is e flag btw.
|
| All times are GMT -4. The time now is 18:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.