Author Topic: Make 2 simple scripts for me?  (Read 786 times)

0 Members and 1 Guest are viewing this topic.

Offline Katelyn

  • Major(1)
  • Posts: 30
Make 2 simple scripts for me?
« on: June 08, 2008, 09:06:09 pm »
I wanted a /swapteams script and a script that if I type !(something here) it outputs certain text with /say.
Thanks.
Current Clan: |BTK|
 [Barret] [AUG] [AK74] [socom] [law]

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Make 2 simple scripts for me?
« Reply #1 on: June 08, 2008, 09:09:10 pm »
If you want a script, learn to code it yourself. Are you a baby? (Assuming No), then don't expect to be spoon fed.

Offline ZomgProniss

  • Camper
  • ***
  • Posts: 318
  • Known ingame as Proniss
Re: Make 2 simple scripts for me?
« Reply #2 on: June 08, 2008, 10:42:04 pm »
If you want a script, learn to code it yourself. Are you a baby? (Assuming No), then don't expect to be spoon fed.

lol well ur nice (sacrasim)...u can usuly find scripts if you brows the scripting release fourms

Offline Boblekonvolutt

  • Soldier
  • **
  • Posts: 222
  • "YOU are a CAR."
Re: Make 2 simple scripts for me?
« Reply #3 on: June 08, 2008, 10:44:03 pm »
Well, Im bored so... Im in ur forumz spoonfeedin' ur doodz. :P
Code: [Select]
procedure OnPlayerSpeak(ID: Byte; Text: string);
begin
  if Copy(Text, 1, 1) = '!' then
    Command('/say ' + Copy(Text, 2, Length(Text)));
end;

procedure SwapTeams;
var i: Integer;
begin
  for i := 1 to 32 do
    if GetPlayerStat(i, 'Active') then
      if GetPlayerStat(i, 'Team') = 1 then
        Command('/setteam2 ' + inttostr(i))
      else
        Command('/setteam1 ' + inttostr(i));
end;

function OnCommand(ID: Byte; Text: String): Boolean;
begin
  if LowerCase(Text) = '/swapteams' then
    SwapTeams;
end;