0 Members and 2 Guests are viewing this topic.
//Script made by UpNorth.seConst BANTIME = 525600; //In minutes (This is 1 year, change it to whatever you like.)var wID: integer; wTeam: integer;function IDtoTeam(PlayerID: integer):integer;begin case PlayerID of 1: Result:= Player_Team_1; 2: Result:= Player_Team_2; 3: Result:= Player_Team_3; 4: Result:= Player_Team_4; 5: Result:= Player_Team_5; 6: Result:= Player_Team_6; 7: Result:= Player_Team_7; 8: Result:= Player_Team_8; 9: Result:= Player_Team_9; 10: Result:= Player_Team_10; 11: Result:= Player_Team_11; 12: Result:= Player_Team_12; 13: Result:= Player_Team_13; 14: Result:= Player_Team_14; 15: Result:= Player_Team_15; 16: Result:= Player_Team_16; 17: Result:= Player_Team_17; 18: Result:= Player_Team_18; 19: Result:= Player_Team_19; 20: Result:= Player_Team_20; 21: Result:= Player_Team_21; 22: Result:= Player_Team_22; 23: Result:= Player_Team_23; 24: Result:= Player_Team_24; 25: Result:= Player_Team_25; 26: Result:= Player_Team_26; 27: Result:= Player_Team_27; 28: Result:= Player_Team_28; 29: Result:= Player_Team_29; 30: Result:= Player_Team_30; 31: Result:= Player_Team_31; 32: Result:= Player_Team_32; end;end;procedure OnPlayerKill(Killer,Victim,Weapon: string);begin wID := NametoID(Killer); wTeam := IDtoTeam(wID); if wTeam = 5 then begin BanPlayer(NametoID(Killer),0); //The '0' makes it permanent, replace it with BANTIME if you like. end;end;
{code}{/code}
That's a pretty nice script there. Though I have never ran into one of those spectator killers myself, I can understand that it can be quite useful.Oh, and a little advice: put your code within these two tags:Code: [Select]{code}{/code}(replace { and } with [ and ])
nice simple script,oh and one thing, you don't have to use those wID and wTeam variables, just put function call into another function call
dont ban me, i have made a spec kill hack, XD, never going public
cant believe that you still remember me well , guess ill be banned from ***, couse i used this a way to often (sry :/ )anyway , the script wont workbtw : somebody else made it public
It's a hack; and it's also fixed in the next version of the dedicated server.
Quote from: chrisgbk on January 21, 2007, 11:15:17 pmIt's a hack; and it's also fixed in the next version of the dedicated server.till they change some mem addresses, and it'll start again :X
Quote from: cooz on January 22, 2007, 04:17:48 amQuote from: chrisgbk on January 21, 2007, 11:15:17 pmIt's a hack; and it's also fixed in the next version of the dedicated server.till they change some mem addresses, and it'll start again :XThey can change as many mem addresses as they want, the detection is server-sided and therefore impossible to bypass.