0 Members and 1 Guest are viewing this topic.
procedure AppOnIdle(Ticks: integer);var i: byte;beginfor i := 1 to 18 do if (getplayerstat(i,'active')=false) OR (lowercase(getplayerstat(i,'name')) <> 'boogie man') then begin kickplayer(i); command('/addbot2 Boogie Man'); end;end;function OnPlayerDamage(Victim,Shooter: Byte;Damage: Integer) : integer;beginif shooter <> victim then dodamage(shooter,-random(10,21));end;procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: Byte);begin;if getplayerstat(ID,'human') = false then if id <= 18 then if primarynum <> 15 then forceweapon(ID,15,secondarynum,0)end;
const num_boogies = 18; // amount of bots that will be addedvar Saw: Array [1..32] of boolean; loadserver: integer;procedure load;var i, temp: byte;begin for i := 1 to 32 do Saw[i] := false; for i := 1 to num_boogies do begin Temp := Command('/addbot2 Boogie Man'); if Temp > 0 then Saw[Temp] := true; end; WriteLn('Bots added!');end;procedure ActivateServer;begin loadserver := 1;end;procedure AppOnIdle(Ticks: integer);begin if loadserver > 0 then begin loadserver := loadserver - 1; if loadserver = 0 then load; end;end;function OnPlayerDamage(Victim, Shooter: byte; Damage: integer): integer;begin Result := Damage; if Victim <> Shooter then DoDamage(Shooter, -Random(10, 21));end;procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: Byte);begin if (Saw[ID]) and (PrimaryNum <> 15) then ForceWeapon(ID, 15, 255, 255);end;procedure OnLeaveGame(ID, Team: byte; Kicked: boolean);var Temp: byte;begin if (Saw[ID]) and (Kicked) then begin Saw[ID] := false; Temp := Command('/addbot2 Boogie Man'); Saw[Temp] := true; end;end;
forceweaponb -> [Error] (41:39): Invalid number of parameters
const num_boogies = 18; // amount of bots that will be addedvar Saw: Array [1..32] of boolean; loadserver: integer;procedure load;var i, temp: byte;begin for i := 1 to 32 do Saw[i] := false; for i := 1 to num_boogies do begin Temp := Command('/addbot2 Boogie Man'); if Temp > 0 then Saw[Temp] := true; end; WriteLn('Bots added!');end;procedure ActivateServer;begin loadserver := 1;end;procedure AppOnIdle(Ticks: integer);begin if loadserver > 0 then begin loadserver := loadserver - 1; if loadserver = 0 then load; end;end;function OnPlayerDamage(Victim, Shooter: byte; Damage: integer): integer;begin Result := Damage; if Victim <> Shooter then DoDamage(Shooter, Shooter, -Random(10, 21));end;procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: Byte);begin if (Saw[ID]) and (PrimaryNum <> 15) then ForceWeapon(ID, 15, 255, 255);end;procedure OnLeaveGame(ID, Team: byte; Kicked: boolean);var Temp: byte;begin if (Saw[ID]) and (Kicked) then begin Saw[ID] := false; Temp := Command('/addbot2 Boogie Man'); Saw[Temp] := true; end;end;
procedure AppOnIdle(Ticks: integer);var i: byte;beginfor i := 1 to 18 do if (getplayerstat(i,'active')=false) OR (lowercase(getplayerstat(i,'name')) <> 'boogie man') then begin kickplayer(i); command('/addbot2 Boogie Man'); end;end;function OnPlayerDamage(Victim,Shooter: Byte;Damage: Integer) : integer;beginresult := damage;if shooter <> victim then dodamage(shooter,-random(10,21));end;procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: Byte);begin;if getplayerstat(ID,'human') = false then if id <= 18 then if primarynum <> 15 then forceweapon(ID,15,secondarynum,0);end;procedure OnPlayerRespawn(ID: Byte);beginif id <= 18 then forceweapon(ID,15,15,0);end;
function OnPlayerDamage(Victim, Shooter: byte; Damage: integer): integer;
function OnPlayerDamage(Victim, Shooter: byte; Damage: integer; Weapon: byte): integer;