Author Topic: SetScore v1.0  (Read 1032 times)

0 Members and 1 Guest are viewing this topic.

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
SetScore v1.0
« on: August 11, 2008, 07:34:19 am »
Script Name: SetScore
Script Description: Admin can set player/team score using commands.

/setplayerscore [id] [score]
/setteamscore [id] [score]

Can be useful sometimes¬  :)

Original Author(s): Me
Core Version: Latest i think
Code:
Code: [Select]
  if GetPiece(Text,' ',0) = '/setteamscore' then begin
    if howmuchteams <> 1 then begin
      if (StrToInt(GetPiece(Text, ' ', 1)) >= 1) and (StrToInt(GetPiece(Text, ' ', 1)) <= howmuchteams) then begin
        if (StrToInt(GetPiece(Text,' ',2)) >= 0) and (StrToInt(GetPiece(Text,' ',2)) <= 100) then begin
          SetTeamScore(StrToInt(GetPiece(Text,' ',1)), StrToInt(GetPiece(Text,' ',2)));
          Command('/say Team ' + GetPiece(Text,' ',1) + ' score has been set to ' + GetPiece(Text,' ',2));

I hope there isn't another script like this.
« Last Edit: August 11, 2008, 10:16:41 am by Gizd »

Offline Rellik

  • Major(1)
  • Posts: 23
Re: SetScore v1.0
« Reply #1 on: August 11, 2008, 08:17:22 am »
Its a .rar =/ care to make it into a zip ?

Edit: Make sure your 'Includes.txt' has a capital "I"

Other than that its a nice usefull script.
« Last Edit: August 11, 2008, 08:23:01 am by Rellik »