Raised This Month: $12 Target: $400
 3% 

sm_addban - change rcon flag


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 10-15-2012 , 11:58   sm_addban - change rcon flag
Reply With Quote #1

Is there an easy way to change the ADMFLAG_RCON for sm_addban? I want my admins to be able to ban players after they left the servers - without giving them rcon flag.

Last edited by Ejziponken; 10-15-2012 at 11:59.
Ejziponken is offline
ecca
Sexy Santa
Join Date: Jan 2011
Old 10-15-2012 , 13:35   Re: sm_addban - change rcon flag
Reply With Quote #2

Använd er utav pluginet här nedan. Annars är alternativet att ge era serveradministratörer rättigheter på sourcebans så dom kan lägga till bannlysningar via hemsidan.

https://forums.alliedmods.net/showthread.php?p=1273254
__________________

Last edited by ecca; 10-15-2012 at 13:44.
ecca is offline
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 10-15-2012 , 13:47   Re: sm_addban - change rcon flag
Reply With Quote #3

Quote:
Originally Posted by ecca View Post
Använd er utav pluginet här nedan. Annars är alternativet att ge era serveradministratörer rättigheter på sourcebans så dom kan lägga till bannlysningar via hemsidan.

https://forums.alliedmods.net/showthread.php?p=1273254
Vill inte göra något utav det. Admins måste kunna banna ingame i efterhand upp till flera dagar efter spelaren lämnat servern. Och att dela ut rights på hemsidan vill vi inte heller.
Ejziponken is offline
ecca
Sexy Santa
Join Date: Jan 2011
Old 10-15-2012 , 13:54   Re: sm_addban - change rcon flag
Reply With Quote #4

Okej, då ger jag er den här lilla filen. Bara att ersätta den gamla sourceban filen med denna. Slänger även med koden.

Tänk på att ladda ner sourcebans.smx för att sourcebans.sp kommer inte compilea på forumet.
Attached Files
File Type: sp Get Plugin or Get Source (sourcebans.sp - 319 views - 72.8 KB)
File Type: smx sourcebans.smx (30.8 KB, 229 views)
__________________
ecca is offline
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 10-15-2012 , 17:08   Re: sm_addban - change rcon flag
Reply With Quote #5

Du ändrade bara till ADMFLAG_BAN? Det kan jag med göra. Ville mest veta om det fanns ett cvar eller om man kunde overrida via en config.

Tack ändå!
Ejziponken is offline
ecca
Sexy Santa
Join Date: Jan 2011
Old 10-16-2012 , 03:12   Re: sm_addban - change rcon flag
Reply With Quote #6

Det finns tyvärr inga cvars eller overrides inbyggt i sourcebans. Därför ändrade jag bara om i filen.

Vid fler frågor så kan du bara slänga iväg ett pm här på AM.
ecca is offline
TheHardstyleBro
Senior Member
Join Date: Jun 2012
Location: Netherlands
Old 10-16-2012 , 04:23   Re: sm_addban - change rcon flag
Reply With Quote #7

Can you guys please talk english ? Or put an english translation under it

Btw, Use admin_overrides.cfg

Overrides
{
"sm_ban" "z"
}

http://wiki.alliedmods.net/Overridin...ess_(SourceMod)
__________________
TheHardstyleBro is offline
ecca
Sexy Santa
Join Date: Jan 2011
Old 10-16-2012 , 08:19   Re: sm_addban - change rcon flag
Reply With Quote #8

He is talking about overrides for sourcebans commando sm_addban. Afaik sourcebans doesnt use checkcommandaccess but i did not find anything about that in code. Afail you cant use overrides then, can you?
ecca is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 10-21-2012 , 09:52   Re: sm_addban - change rcon flag
Reply With Quote #9

Quote:
Originally Posted by Ejziponken View Post
Is there an easy way to change the ADMFLAG_RCON for sm_addban? I want my admins to be able to ban players after they left the servers - without giving them rcon flag.
Quote:
Originally Posted by Ejziponken View Post
Is there an easy way to change the ADMFLAG_RCON for sm_addban? I want my admins to be able to ban players after they left the servers - without giving them rcon flag.
That's what Admin Overrides could be used for. You're even able to set them from the webpanel as of 1.4.10

http://wiki.alliedmods.net/Overridin...28SourceMod%29
Add sm_addban with the new flag you want as global override or group override.

Quote:
Originally Posted by ecca View Post
He is talking about overrides for sourcebans commando sm_addban. Afaik sourcebans doesnt use checkcommandaccess but i did not find anything about that in code. Afail you cant use overrides then, can you?
You don't have to edit the sourcecode. That's what overrides are there for! If you register an admin command using RegAdminCmd it's overrideable. You only need CheckCommandAccess, if you need the permissions elsewhere in your code - not in the command's callback.
__________________
Peace-Maker is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode