Author Topic: I am doing the script and the problem!  (Read 851 times)

0 Members and 1 Guest are viewing this topic.

Offline dominikkk26

  • Camper
  • ***
  • Posts: 404
    • PMGsite
I am doing the script and the problem!
« on: February 07, 2010, 07:49:07 am »
Code: (pascal) [Select]
procedure Heal(Team: byte);
var
  HP: integer;
  i: byte;
begin
  for i:= 1 to 32 do if GetPlayerStat(i,'Active') = true then if GetPlayerStat(i,'Alive') = true then if GetPlayerStat(i,'Health') < MaxHP then
   if Team = GetPlayerStat(i,'Team') then if
    Distance(GetPlayerStat(Medic[Team],'X'),GetPlayerStat(Medic[Team],'Y'),GetPlayerStat(i,'X'),GetPlayerStat(i,'Y')) <= HealDistance then begin

    DrawText(Medic[Team],'Healing',60,Color,0.1,160,350);
    if GetPlayerStat(i,'Health') <= (MaxHP-HpHealed) then HP:= 5 else HP:= MaxHP-GetPlayerStat(i,'Health');
    DoDamage(i,-HP);
    if Medic[Team] <> i then begin
      inc(Healed[Team],HP);
      if Healed[Team] > HealForPoint then begin
        WriteConsole(Medic[Team],'You got 1 point for healing.',Color);
        SetScore(Medic[Team],GetPlayerStat(Medic[Team],'Kills')+1);
        Healed[Team]:= 0;
      end;
    end;
  end;
end;

The engine is stared a bit but it wants to change that as it then pressing q healing oneself and others want to not have been this push!

Offline Stuffy

  • Soldier
  • **
  • Posts: 182
  • Very stuffy.
    • Climb-Zone Forum
Re: I am doing the script and the problem!
« Reply #1 on: February 07, 2010, 08:39:36 am »
ok, you want a script that only heal other players while the medic is holding down the q key? Like on Last Stand?
But I have no idea what you mean with that:
Quote
and others want to not have been this push!
The truth is out there? Does anyone know the URL?
The URL is here

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: I am doing the script and the problem!
« Reply #2 on: February 07, 2010, 09:28:15 am »
I think that's my script and he wants to heal without pressing/holding Q.

Offline Stuffy

  • Soldier
  • **
  • Posts: 182
  • Very stuffy.
    • Climb-Zone Forum
Re: I am doing the script and the problem!
« Reply #3 on: February 07, 2010, 10:42:33 am »
well use the search function: there is a medic script by curt
http://forums.soldat.pl/index.php?topic=18764.0
The truth is out there? Does anyone know the URL?
The URL is here