0 Members and 1 Guest are viewing this topic.
const ANTIFLAMELANG ='czech';var badwords, badboys, vbadboys: TStringArray; warnstring: string; kickstring: string; banstring: string; words: string; badboysstring : string;
function xsplit(const source: string; const delimiter: string):TStringArray;var i,x,d:integer; s:string;begind:=length(delimiter);x:=0;i:=1;SetArrayLength(Result,1);while(i<=length(source)) do begins:=Copy(source,i,d); if(s=delimiter) then begin inc(i,d); inc(x,1); SetArrayLength(result,x+1); end else begin result[x]:= result[x]+Copy(s,1,1); inc(i,1); end;end;end;
procedure refreshbadwords();beginwritefile('badwords.txt',GetURL('http://web0.res0.45188.vs.webtropia.com/soldatnet/badwords/'+ANTIFLAMELANG+'.badwords.txt'));try try badwords := XSplit(ReadFile('badwords.txt'),chr(13) + chr(10)); except end; try if FileExists('warned.txt') = false then begin WriteFile('warned.txt', 'aäsdkaslakfkasf'); WriteLn('warned.txt does not exists - creating it.'); end; badboysstring := ReadFile('warned.txt'); badboys := XSplit(badboysstring,chr(13) + chr(10)); except end; try if FileExists('kicked.txt') = false then begin WriteFile('kicked.txt', 'aäsdkaslakfkasf'); WriteLn('kicked.txt does not exists - creating it.'); end; badboysstring := ReadFile('kicked.txt'); vbadboys := XSplit(badboysstring,chr(13) + chr(10)); except end;finally writeLn('|----------------------------------|'); writeLn('| Badwords loaded successfully... |'); writeLn('| (v)Badboys loaded successfully! |'); writeLn('| Done by Mankind-Software.com |'); writeLn('| Get it @ soldatnet.com! |'); writeLn('|----------------------------------|'); end;end;
procedure ActivateServer();begin refreshbadwords;end;
procedure OnPlayerSpeak(ID: byte; Text: string);var i, j, k: integer; temp, tmpip: string;begin for i:=0 to arrayhigh(badwords)-1 do begin if ContainsString(LowerCase(Text), badwords[i]) = true then begin for k:=0 to arrayhigh(vbadboys)-1 do if LowerCase(vbadboys[k]) = LowerCase(IdToName(ID)) then begin DrawText(0,badwords[1],330,RGB(255,10,10),0.1,5,240); command('/say '+IdToName(ID)+' '+badwords[3]); tmpip := IdToIP(ID); BanPlayer(ID, 0); command('/banip '+tmpip); break; end; for j:=0 to arrayhigh(badboys)-1 do if LowerCase(badboys[j]) = LowerCase(IdToName(ID)) then begin DrawText(0,badwords[1],330,RGB(255,10,10),0.1,5,240); command('/say '+IdToName(ID)+' '+badwords[1]); WriteFile('kicked.txt', ReadFile('kicked.txt')+chr(13)+chr(10)+IdToName(ID)); KickPlayer(ID); refreshbadwords; break; end; for j:=0 to arrayhigh(badboys)-1 do if LowerCase(badboys[j]) <> LowerCase(IdToName(ID)) then begin DrawText(0,badwords[0],330,RGB(255,10,10),0.1,5,240); command( '/say '+IdToName(ID)+' '+badwords[0]); WriteFile('warned.txt', ReadFile('warned.txt')+chr(13)+chr(10)+IdToName(ID)); refreshbadwords; break; end; end; end;end;
procedure AppOnIdle(Ticks: integer);beginif Ticks mod (3600 * 5) = 0 then refreshbadwords; end;
procedure OnJoinTeam(ID, Team: byte);beginWriteConsole(ID,'Server is secured by Antiflame-Script.',RGB(255,185,15));WriteConsole(ID,'Check Soldatnet.com for more Details.',RGB(255,185,15));end;
nebud jak maly, nadavky jsou trestne !vykopnut za nadavky, po treti to bude ban !byl zabanovan za nadavky !pichajzlkokotkundkryplzmrdsrackcurakcurackurvkretenuchylzkurvysyndementsulindevkbuznbuzerant********idiot****asssuckpakopakamagorjebmrddemence
My new password is secure as shit Mate, I am not sure Shit is even secured nowadays.