Author Topic: Locking 1 team on CTF?  (Read 549 times)

0 Members and 1 Guest are viewing this topic.

Offline Kitty

  • Major
  • *
  • Posts: 60
Locking 1 team on CTF?
« on: May 31, 2008, 02:57:26 pm »
Is there a script around that allows you to lock Bravo team so only Alpha team can be joined by players? Or could someone make something like that?  [pigtail] ???
-A female soldat player.


Offline BRADEN

  • Camper
  • ***
  • Posts: 319
Re: Locking 1 team on CTF?
« Reply #1 on: May 31, 2008, 04:52:01 pm »
This kicks players if they join Bravo.

Code: [Select]
//UNTESTED!
procedure OnJoinTeam(ID, Team: byte);
begin
if (GetPlayerStat(ID,'team')) = 2 then begin
KickPlayer(ID);
end;
« Last Edit: June 01, 2008, 01:04:55 am by BRADEN »

Death is the solution to all problems. No man; no problem.
-Joseph Stalin

Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Personal
Re: Locking 1 team on CTF?
« Reply #2 on: May 31, 2008, 06:15:12 pm »
Code: [Select]
procedure OnJoinTeam(ID, Team: byte);
begin
  if (GetPlayerStat(ID, 'Team') = 2) and (GetPlayerStat(ID, 'Human') = True) then Command('/setteam1 '+IntToStr(ID));
end;
Co-Founder / CTO @ Macellan
Founder Turkish Soldat Community