Author Topic: [Request] A script that unbans IP  (Read 1791 times)

0 Members and 1 Guest are viewing this topic.

Offline blackdevil0742

  • Veteran
  • *****
  • Posts: 1061
  • Don't Panic
[Request] A script that unbans IP
« on: July 29, 2008, 11:33:08 am »
(If possible) can someone make a script that unbans IPs when it finds them in the banned.txt? I have some players that get banned by BE and I wish to make it so they get unbanned directly so they don't have to wit 5mins.


OLD;
I've downloaded a few scripts but none of them work theĀ  way I wouild like them to. I have no knowledge of scripting so I can't understand everything to change them.

I downloaded the tk script that was posted by toumaz. When someone gets tk:ed he has to use "/tk X" but I would like it to be "!X". I tried to change it but my change didn't work.

Then I also got the medic script posted by DorkeyDear but it also heals the medic which I don't want to.
Yay. He posted it :)
« Last Edit: August 01, 2008, 11:45:54 am by blackdevil0742 »

OBEY!!!

Offline As de Espada

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1493
  • Mapper
    • My maps
Re: Need help with a few scripts
« Reply #1 on: July 30, 2008, 01:22:37 pm »
the script link is not working... but maybe if you change the
'/tk X' for '!X' maybe it would work...
All my maps | my latest map: SoldatX Racing Mappack
me making a map on youtube: ctf_FastMade

Offline blackdevil0742

  • Veteran
  • *****
  • Posts: 1061
  • Don't Panic
Re: Need help with a few scripts
« Reply #2 on: July 30, 2008, 01:31:34 pm »
Oh. Here it is:
http://forums.soldat.pl/index.php?topic=25788.0

I tried modifying it myself but I didn't succeed.

OBEY!!!

Offline As de Espada

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1493
  • Mapper
    • My maps
Re: Need help with a few scripts
« Reply #3 on: July 30, 2008, 09:27:35 pm »
I got it, first of all, I chaged onplayercommand for onplayerspeak
then I didn't use the split by ' ' (spaces), I used the text as an array
replace this in the onplayercommand
this is !1, !2, !3 and !4, but you'll figured out how to do it GL
Code: [Select]
function OnPlayerSpeak(ID: Byte; Text: string): boolean;
var
votable: boolean;
begin
Result := false;
if (BANPOINT_MAX>0)and(text[1]='!')and(killLog[ID]>0)and(voteTime[ID]<>0) then begin
   votable:=false;
   case text[2] of
'1': begin
WriteConsole(killLog[ID],GetPlayerStat(ID,'name')+' has forgiven you.',$EE00FFFF);
votable:=true;
end;

'2': begin
WriteConsole(killLog[ID],GetPlayerStat(ID,'name')+' has chosen to kill you.',$EE00FFFF);
Command('/kill ' + inttostr(killLog[ID]));
BanPoint(killLog[ID]);
votable:=true;
end;

'3': begin
BanPoint(killLog[ID]);
votable:=true;
end;

'4': begin
if survival then begin
WriteConsole(killLog[ID],GetPlayerStat(ID,'name')+' has chosen to kill you on next spawn.',$EE00FFFF);
spawnKill[killLog[id]]:=1;
BanPoint(killLog[id]);
votable:=true;
end;
end;
end;
if votable then begin
WriteConsole(ID,'Vote successful.',$EE00FFFF);
killLog[id]:=0;
voteTime[id]:=0;
end;
end;
end;
All my maps | my latest map: SoldatX Racing Mappack
me making a map on youtube: ctf_FastMade

Offline blackdevil0742

  • Veteran
  • *****
  • Posts: 1061
  • Don't Panic
Re: [Request] A script that unbans IP
« Reply #4 on: August 01, 2008, 11:46:41 am »
Thanks for this  :-*

Date Posted: July 31, 2008, 11:27:30 am
Bump.
New qestions in first post.

OBEY!!!

Offline Irlandec

  • Soldier
  • **
  • Posts: 176
Re: [Request] A script that unbans IP
« Reply #5 on: August 01, 2008, 11:54:21 am »
Maybe you can try using ARSSE? I always un-ban players with it and no-one was argued with me about BE kicks.

P.S. : If you want it being scripted , don't mind my post (bad english , sorry)

Offline blackdevil0742

  • Veteran
  • *****
  • Posts: 1061
  • Don't Panic
Re: [Request] A script that unbans IP
« Reply #6 on: August 05, 2008, 05:52:49 am »
I don't have arsse on all the time and it is a little annoying unbanning the player manually. A script that would execute it directly would be so much better.

OBEY!!!

Offline Furai

  • Administrator
  • Veteran
  • *****
  • Posts: 1908
    • TransHuman Design
Re: [Request] A script that unbans IP
« Reply #7 on: August 05, 2008, 02:47:07 pm »
Why don't you just edit server.ini and change BEBanTime=5 to BEBanTime=0??
Easiest way IMHO.

Or switch BE off. Change BattlEye_Anti_Cheat=1 in soldat.ini to BattlEye_Anti_Cheat=0. That will do. ^^'
« Last Edit: August 05, 2008, 03:16:13 pm by Wookash »
"My senses are so powerful that I can hear the blood pumping through your veins."

Offline blackdevil0742

  • Veteran
  • *****
  • Posts: 1061
  • Don't Panic
Re: [Request] A script that unbans IP
« Reply #8 on: August 06, 2008, 12:31:12 pm »
I still want BE to do it's job. So a script like this could be handy. Anyway It's not that important.

OBEY!!!

Offline Furai

  • Administrator
  • Veteran
  • *****
  • Posts: 1908
    • TransHuman Design
Re: [Request] A script that unbans IP
« Reply #9 on: August 07, 2008, 04:18:41 am »
And how about taunt?
F.e. set for alt+1 command /unbanlast. xD
I'm searching for other way than script (cause it increase CPU usage of your server). ^^'
"My senses are so powerful that I can hear the blood pumping through your veins."

Offline blackdevil0742

  • Veteran
  • *****
  • Posts: 1061
  • Don't Panic
Re: [Request] A script that unbans IP
« Reply #10 on: August 07, 2008, 04:44:08 am »
The issue is that I don't always play on the server or have arsse on so if the server could do that then I don't have to check on it everytime. Not only that but i won't have physical access to it after a week or so. CPU usage doesn't matter as long as it won't put the whole server to a halt which i doubt one more script will cause.

OBEY!!!

Offline Norbo

  • Camper
  • ***
  • Posts: 338
Re: [Request] A script that unbans IP
« Reply #11 on: August 07, 2008, 05:13:20 am »
Code: [Select]
procedure OnLeaveGame(ID, Team: byte;Kicked: boolean);
begin
if (Kicked = true) then
begin
Command('/unbanlast');
end
end;
If someone will be banned the script just does /unbanlast ;]
Dont need any file reading, just unban them.

Offline blackdevil0742

  • Veteran
  • *****
  • Posts: 1061
  • Don't Panic
Re: [Request] A script that unbans IP
« Reply #12 on: August 07, 2008, 05:26:23 am »
But I still need people that are bad to get banned :o

OBEY!!!

Offline Toumaz

  • Veteran
  • *****
  • Posts: 1904
Re: [Request] A script that unbans IP
« Reply #13 on: August 07, 2008, 05:36:21 am »
But I still need people that are bad to get banned :o
Seeing as players whom are kicked for client not responding could fall under this category as well, and that it lasts five minutes ... why bother?

Offline Furai

  • Administrator
  • Veteran
  • *****
  • Posts: 1908
    • TransHuman Design
Re: [Request] A script that unbans IP
« Reply #14 on: August 07, 2008, 06:49:20 am »
So just give your friends admin rights, they won't get banned. ^^'
"My senses are so powerful that I can hear the blood pumping through your veins."

Offline blackdevil0742

  • Veteran
  • *****
  • Posts: 1061
  • Don't Panic
Re: [Request] A script that unbans IP
« Reply #15 on: August 07, 2008, 07:10:14 am »
I guess I can do that :p

OBEY!!!