0 Members and 3 Guests are viewing this topic.
procedure OnPlayerSpeak(ID: Byte; Text: string);beginif (MaskCheck(Text, '!team *')) then Command('/setteam' + GetPiece(Text, ' ', 1) + ' ' + IntToStr(ID));end;
procedure OnPlayerSpeak(ID: Byte; Text: string);beginif (MaskCheck(Text, '!team *')) and ((GetPiece(Text, ' ', 1) = 1) or (GetPiece(Text, ' ', 1) = 2) or (GetPiece(Text, ' ', 1) = 5)) then Command('/setteam' + GetPiece(Text, ' ', 1) + ' ' + IntToStr(ID));end;
procedure OnPlayerSpeak(ID: Byte; Text: string);begin if Text = '!1' then Command('/setteam1' + ' ' + IntToStr(ID) else if Text = '!2' then Command('/setteam2' + ' ' + IntToStr(ID) else if Text = '!5' then Command('/setteam5' + ' ' + IntToStr(ID);end;
where i must put this?
Quote from: dragus on November 13, 2008, 08:55:36 amwhere i must put this?stick it up your ass maybeuse the damn search option and dont be a stupid ignorantand stop spamming every script with "where do i put code?"
Damn rite!Stick it up to ur ass!
Team Change Script by me, there is commands: !1, !2, !5, !red, !blue & !specpaste this to folder: serverfiles\scripts\it must work - 466bytes
I wouldnt advise anyone downloading this. A normal script like that should be about 1-3 kbs, and this one is only 466bytes. It might be a virus or smth. I didnt download this so i dont know, and i might be wrong, but there is something suspicious about this
varstatus: boolean;procedure ActivateServer();beginstatus:=true;end;procedure OnPlayerSpeak(ID: Byte; Text: string);begin if ((Text ='!red') or (Text='!1') and (status=true) and (GetPlayerStat(ID,'Team')<>1)) then begin Command('/setteam1 '+inttostr(ID)); end; if ((Text='!blue') or (Text='!2') and (status=true) and (GetPlayerStat(ID,'Team')<>2)) then begin Command('/setteam2 '+inttostr(ID)); end; if ((Text='!spec') or (Text='!5') and (status=true) and (GetPlayerStat(ID,'Team')<>5)) then begin Command('/setteam5 '+inttostr(ID)); end;end;
Quote from: Norbo on November 14, 2008, 11:46:16 amI wouldnt advise anyone downloading this. A normal script like that should be about 1-3 kbs, and this one is only 466bytes. It might be a virus or smth. I didnt download this so i dont know, and i might be wrong, but there is something suspicious about this... have you ever heard of compressed files and/or scripts consisting of less than 1024 characters?Code: [Select]varstatus: boolean;procedure ActivateServer();beginstatus:=true;end;procedure OnPlayerSpeak(ID: Byte; Text: string);begin if ((Text ='!red') or (Text='!1') and (status=true) and (GetPlayerStat(ID,'Team')<>1)) then begin Command('/setteam1 '+inttostr(ID)); end; if ((Text='!blue') or (Text='!2') and (status=true) and (GetPlayerStat(ID,'Team')<>2)) then begin Command('/setteam2 '+inttostr(ID)); end; if ((Text='!spec') or (Text='!5') and (status=true) and (GetPlayerStat(ID,'Team')<>5)) then begin Command('/setteam5 '+inttostr(ID)); end;end;