Author Topic: I WANT 1.4.2 VERSION  (Read 2030 times)

0 Members and 1 Guest are viewing this topic.

Offline Hubiq

  • Soldier
  • **
  • Posts: 119
I WANT 1.4.2 VERSION
« on: November 25, 2012, 05:20:06 am »
FUCK 1.6  :D
« Last Edit: March 09, 2015, 10:15:12 am by Hubiq »

Offline Mighty

  • Camper
  • ***
  • Posts: 276
Re: Anti-delta and charlie [script]
« Reply #1 on: November 25, 2012, 07:25:13 am »
Didn't test it, but should do. Keeps your teams as even as possible, too.

Code: [Select]
procedure OnJoinTeam(ID, Team: byte);
begin
if Team > 2 then
begin
if AlphaPlayers > BravoPlayers then
Command('/setteam2 '+inttostr(ID))
else
Command('/setteam1 '+inttostr(ID));
end;
end;
xFire: macmil        e-mail: macekmil@gmail.com
My scripts: Accuracy Script       Flashbang       Punishments GUID
            CatchMe Gamemod       AntiFake
            CW System             AntiFakeGUID

Offline TheOne

  • Soldier
  • **
  • Posts: 208
Re: Anti-delta and charlie [script]
« Reply #2 on: November 25, 2012, 07:39:10 am »
That prevents people from joining spec as well, though.

Code: [Select]
procedure OnJoinTeam(ID, Team: byte);
begin
if (Team = 3) or (Team = 4) then
begin
if AlphaPlayers > BravoPlayers then
Command('/setteam2 '+inttostr(ID))
else
Command('/setteam1 '+inttostr(ID));
end;
end;

Offline Mighty

  • Camper
  • ***
  • Posts: 276
Re: Anti-delta and charlie [script]
« Reply #3 on: November 25, 2012, 07:40:27 am »
True, my bad
xFire: macmil        e-mail: macekmil@gmail.com
My scripts: Accuracy Script       Flashbang       Punishments GUID
            CatchMe Gamemod       AntiFake
            CW System             AntiFakeGUID

Offline Hubiq

  • Soldier
  • **
  • Posts: 119
Re: Anti-delta and charlie [script]
« Reply #4 on: November 25, 2012, 08:07:23 am »
Thank all!

I'm looking for yet another script that:

- Allows you to join a game only four players in TDM mode and the rest joins as a spectator.

If anyone has this script please help.

Offline TheOne

  • Soldier
  • **
  • Posts: 208
Re: Anti-delta and charlie [script]
« Reply #5 on: November 26, 2012, 07:45:26 am »
I suggest to combine the two scripts. If you use the same events in separate scripts they often interact in a bad way.
Version one, separated:
Code: [Select]
procedure OnJoinTeam(ID, Team: byte);
begin
if Team < 5 then
if AlphaPlayers + BravoPlayers + CharliePlayers + DeltaPlayers >= 4 then
Command('/setteam5 ' + inttostr(ID));
end;

Version two, combined with the previous one:
Code: [Select]
procedure OnJoinTeam(ID, Team: byte);
begin
if Team < 5 then
begin
if AlphaPlayers + BravoPlayers >= 4 then
Command('/setteam5 ' + inttostr(ID))
else if Team > 2 then
if AlphaPlayers > BravoPlayers then
Command('/setteam2 ' + inttostr(ID))
else
Command('/setteam1 ' + inttostr(ID));
end;
end;

Note: I'm not sure, but I think AlphaPlayers,... contains the old number of players, excluding the one joining.
« Last Edit: November 26, 2012, 07:53:41 am by TheOne »

Offline Hubiq

  • Soldier
  • **
  • Posts: 119
Re: Anti-delta and charlie [script]
« Reply #6 on: November 26, 2012, 09:02:22 am »
Thanks :D