AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   SourceBans / SourceBans++ (https://forums.alliedmods.net/forumdisplay.php?f=152)
-   -   sm_addban - change rcon flag (https://forums.alliedmods.net/showthread.php?t=198403)

Ejziponken 10-15-2012 11:58

sm_addban - change rcon flag
 
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.

ecca 10-15-2012 13:35

Re: sm_addban - change rcon flag
 
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

Ejziponken 10-15-2012 13:47

Re: sm_addban - change rcon flag
 
Quote:

Originally Posted by ecca (Post 1819451)
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.

ecca 10-15-2012 13:54

Re: sm_addban - change rcon flag
 
2 Attachment(s)
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. :)

Ejziponken 10-15-2012 17:08

Re: sm_addban - change rcon flag
 
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. :P

Tack ändå! :)

ecca 10-16-2012 03:12

Re: sm_addban - change rcon flag
 
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.

TheHardstyleBro 10-16-2012 04:23

Re: sm_addban - change rcon flag
 
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)

ecca 10-16-2012 08:19

Re: sm_addban - change rcon flag
 
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?

Peace-Maker 10-21-2012 09:52

Re: sm_addban - change rcon flag
 
Quote:

Originally Posted by Ejziponken (Post 1819387)
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 (Post 1819387)
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 (Post 1819976)
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.


All times are GMT -4. The time now is 19:02.

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