Author Topic: DoDamage help !!!  (Read 898 times)

0 Members and 1 Guest are viewing this topic.

Offline mich1103

  • Flagrunner
  • ****
  • Posts: 558
  • Did you say chocolate ? O.o
    • ZoMbIe-DeStRoYeR pk server
DoDamage help !!!
« on: March 06, 2010, 03:29:21 pm »
 Wath i need to put if i want that be the owner of the command that he kill the zombie ???
 
Quote
if regExpMatch('^/(zombie|zomb)$', Text) then
    begin
      if money[ID] >= zombcost then
        begin
          money[ID] := money[ID] - zombcost;
          DoDamage(+inttostr(NameToID('Zombie')),HERE I WANT THAT BE THE OWNER OF THE COMMAND,4000);
         
          writeconsole(ID, 'You kill all Zombie for 1000$' + inttostr(money[ID]), RGB(0,255,255));

        end else begin writeconsole(ID, 'You do not have enough money', RGB(0,255,255)); end;

    end;

i know that is not all the part of the script but i only want help with this part ^^
« Last Edit: March 06, 2010, 03:31:50 pm by mich1103 »

Offline Hacktank

  • Camper
  • ***
  • Posts: 462
  • Soldat Scripter
    • HTZRPG
Re: DoDamage help !!!
« Reply #1 on: March 06, 2010, 04:09:17 pm »
Code: [Select]
procedure KillAll(Killer: byte; Name: string);
var i: byte;
begin
for i := 1 to 32 do if getplayerstat(i,'active') then if getplayerstat(i,'name') = name then dodamageby(i,killer,4000);
end;


Offline mich1103

  • Flagrunner
  • ****
  • Posts: 558
  • Did you say chocolate ? O.o
    • ZoMbIe-DeStRoYeR pk server
Re: DoDamage help !!!
« Reply #2 on: March 06, 2010, 07:11:29 pm »
can you include it to my script ?

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: DoDamage help !!!
« Reply #3 on: March 07, 2010, 03:54:28 am »
can you include it to my script ?
ctrl+c ctrl+v