Author Topic: Script request !!!  (Read 4451 times)

0 Members and 1 Guest are viewing this topic.

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Script request !!!
« Reply #20 on: May 27, 2010, 10:58:38 pm »
Code: [Select]
var kick: array[1..32] of boolean;

procedure OnPlayerKill(Killer, Victim: byte;Weapon: string);
begin
  if getplayerstat(victim,'human') = false then kick[victim] := true;
end;

procedure AppOnIdle(Ticks: integer);
var i: byte;
begin
  for i := 1 to 32 do if kick[i] then begin
    kickplayer(i);
    kick[i]:= false;
  end;
end;

Offline mich1103

  • Flagrunner
  • ****
  • Posts: 557
  • Did you say chocolate ? O.o
    • ZoMbIe-DeStRoYeR pk server
Re: Script request !!!
« Reply #21 on: May 28, 2010, 06:09:16 pm »
A last little thing !
can you do a script that onplayerkill there is 1% to add a bot ?

Offline Hacktank

  • Camper
  • ***
  • Posts: 462
  • Soldat Scripter
    • HTZRPG
Re: Script request !!!
« Reply #22 on: May 28, 2010, 09:35:14 pm »
Code: [Select]
procedure OnPlayerKill(Killer, Victim: byte;Weapon: string);
begin
if killer <> victim then if random(1,101) <= 1 then command('/addbot1 '+randombot()); //  the # 1 is the percent chance
end;


Offline absoulut1234

  • Major(1)
  • Posts: 30
Re: Script request !!!
« Reply #23 on: May 28, 2010, 10:54:01 pm »
it look like MMOD?

DarkCrusade

  • Guest
Re: Script request !!!
« Reply #24 on: May 29, 2010, 12:55:59 am »
What makes you think that this little script looks like the bigass MMOD which is 1000 times bigger and better and more DIFFERENT?

I'm curious.

Offline mich1103

  • Flagrunner
  • ****
  • Posts: 557
  • Did you say chocolate ? O.o
    • ZoMbIe-DeStRoYeR pk server
Re: Script request !!!
« Reply #25 on: May 29, 2010, 06:00:30 am »
//  the # 1 is the percent chance
which 1 your talking about ???

DarkCrusade

  • Guest
Re: Script request !!!
« Reply #26 on: May 29, 2010, 06:02:04 am »
RANDOM(1,101) <<< THE 1 IS THE CHANCE PERCENTAGE

Offline mich1103

  • Flagrunner
  • ****
  • Posts: 557
  • Did you say chocolate ? O.o
    • ZoMbIe-DeStRoYeR pk server
Re: Script request !!!
« Reply #27 on: May 29, 2010, 06:07:10 am »
this one 1,101 ???

DarkCrusade

  • Guest
Re: Script request !!!
« Reply #28 on: May 29, 2010, 06:17:31 am »
YES!

Offline Swompie

  • Camper
  • ***
  • Posts: 390
Re: Script request !!!
« Reply #29 on: May 29, 2010, 11:05:06 am »
Not really.
The one after <=..

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Script request !!!
« Reply #30 on: May 29, 2010, 11:29:18 am »
mich: For your own safety ignore DarkCrusade.

As Swompie said:
random(1,101) <= 1

Offline mich1103

  • Flagrunner
  • ****
  • Posts: 557
  • Did you say chocolate ? O.o
    • ZoMbIe-DeStRoYeR pk server
Re: Script request !!!
« Reply #31 on: May 29, 2010, 12:07:36 pm »
Ok thanks :D