Author Topic: Additional server parameter  (Read 1842 times)

0 Members and 2 Guests are viewing this topic.

Offline Bonecrusher

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1397
  • High above
    • Zabijaka.pl
Additional server parameter
« on: December 04, 2013, 04:28:23 pm »
How about new soldat.ini parameter which would look like "Server_contact=" and could include email address of server owner which would be displayed when trying to join a server you are banned on.

Server_contact=email

default - You have been banned on this server.
when a parameter is used - You have been banned on this server please contact: email for more info.

Im chill like that

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: Additional server parameter
« Reply #1 on: December 04, 2013, 04:53:45 pm »
You can achieve that with a well crafted script, which doesn't mean it shouldn't be built-in anyway.
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

DarkCrusade

  • Guest
Re: Additional server parameter
« Reply #2 on: December 04, 2013, 05:22:23 pm »
@FalconPL: Definitely doable, although it appears to be much easier to simply implement it into Soldat itself.

I like the idea. Good thinking there!

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: Additional server parameter
« Reply #3 on: December 05, 2013, 09:17:05 am »
I feel like this will be primarily used for server owners to just write "fuck off" in the box. Should probably be called "banned message" instead of contact email, because most/a lot of people banned probably deserve it.
There are other worlds than these

Offline Shoozza

  • Retired Soldat Developer
  • Veteran
  • ******
  • Posts: 1632
  • Soldat's Babysitter
    • Website
Re: Additional server parameter
« Reply #4 on: December 07, 2013, 05:41:22 am »
I don't think this will be of much use you probably wont read banned players rage mail for long.
Also the banned message isn't really necessary atm.
Rules
Tools: ARSSE - SARS - SRB - chatMod

Offline Bonecrusher

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1397
  • High above
    • Zabijaka.pl
Re: Additional server parameter
« Reply #5 on: December 07, 2013, 12:33:28 pm »
There are several other admins on my servers and I cant keep track of all of their actions. This will certainly increase unbanrate when it comes to unfortunate bans like mistaking someone for a hacker or something. Just like Falcon mentioned ill have to get my hands on script doing that, I've had it on climb once but it's lost somewhere on my hdd.

Im chill like that

Offline kicikici

  • Soldier
  • **
  • Posts: 180
Re: Additional server parameter
« Reply #6 on: December 07, 2013, 01:35:17 pm »
This simple script can be helpful

Code: [Select]
function OnCommand(ID: byte; Text: string): boolean;
var
   player_id: integer;
begin
   if(GetPiece(Text, ' ', 0)='/ban') then begin
      Result:=true;
      try
         player_id:=strtoint(GetPiece(Text, ' ', 1));
         BanPlayerReason(player_id, 43200, 'Contact via email: example@gmail.com');
      except
         WriteConsole(ID, 'Wrong player ID!', $FF0000);
      end;
   end;
end;
Classic banana