0 Members and 1 Guest are viewing this topic.
Quote from: y0uRd34th on December 28, 2008, 11:10:10 amYes,Yes EnEsCe, i know sry about Triple Post But do someone see it the "new" if i modify Post?A trick I use is to take the contents of my previous post, delete it, and then make a new post containing the previous post and my new post. Then you avoid double posting and you bump the topic.
Yes,Yes EnEsCe, i know sry about Triple Post But do someone see it the "new" if i modify Post?
procedure AppOnIdle(Ticks: integer);var i: Byte;begin for i := 1 to 32 do if Ticks mod (60 * 20) = 0 then givebonus(i,1);end;procedure OnPlayerRespawn(ID: byte);begin givebonus(ID,1); ForceWeapon(ID,13,14,0);end;procedure ActivateServer();var w: Byte;begin for w := 1 to 14 do SetWeaponActive(0,w,false);end;
var cooldown: array [1..32] of byte; just_resp: array [1..32] of boolean; procedure AppOnIdle(Ticks: integer);var i: Byte;begin for i := 1 to 32 do if getplayerstat(i,'active') then if cooldown[i] > 0 then cooldown[i] := cooldown[i] - 1 else begin givebonus(i,1); cooldown[i] := 20; if just_resp[i] then begin ForceWeapon(i,13,14,0); just_resp[i] := false; end; end;end;procedure OnPlayerRespawn(ID: byte);begin cooldown[id] := 1; just_resp[id] := true;end;procedure ActivateServer();var w: Byte;begin for w := 1 to 14 do SetWeaponActive(0,w,false);end;
procedure ActivateServer();var w: Byte;begin for w := 1 to 14 do SetWeaponActive(0,w,false);end;
procedure OnJoinGame(ID, Team: byte);var w: Bytebegin for w := 1 to 14 do SetWeaponActive(ID,w,false);end;
procedure OnJoinGame(ID, Team: byte);var w: Byte;begin for w := 1 to 14 do SetWeaponActive(ID,w,false);end;
procedure OnJoinGame(ID, Team: byte);var WeaponNum: Byte;begin for WeaponNum := 1 to 14 do SetWeaponActive(ID,WeaponNum,false);end;
var cooldown: array [1..32] of byte; coolbarret: array [1..32] of byte;procedure AppOnIdle(Ticks: integer);var i: Byte; u: Byte;begin for i := 1 to 32 do if getplayerstat(i,'active') then if cooldown[i] > 0 then cooldown[i] := cooldown[i] - 1 else begin givebonus(i,1); cooldown[i] := 20; end; for u := 1 to 32 do if GetPlayerStat(i,'active') then if coolbarret[u] > 0 then coolbarret[u] := cooldown[i] - 1end;procedure OnPlayerRespawn(ID: byte);begin cooldown[id] := 1;end;procedure OnJoinTeam(ID, Team: byte);var w: Byte;begin for w := 2 to 14 do SetWeaponActive(ID,w,false);end;procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: byte);begin if PrimaryNum = 1 then ForceWeapon(ID,15,16,0);end;procedure OnFlagScore(ID, TeamFlag: byte);begin GiveBonus(ID,3);end;function OnPlayerCommand(ID: Byte; Text: string): boolean;begin if Text = '/barret' then if coolbarret := 0 then begin ForceWeapon(ID,8,16,0); coolbarret[id] := 120; end; end; Result := false;end;
u: Byte; for u := 1 to 32 do if GetPlayerStat(i,'active') then if coolbarret[u] > 0 then coolbarret[u] := cooldown[i] - 1end;function OnPlayerCommand(ID: Byte; Text: string): boolean;begin if Text = '/barret' then if coolbarret := 0 then begin ForceWeapon(ID,8,16,0); coolbarret[id] := 120; end; end; Result := false;end;
coolbarret[u] := cooldown[i] - 1
coolbarret[i] := coolbarret[i] - 1
procedure AppOnIdle(Ticks: integer);var i: Byte;begin for i := 1 to 32 do if getplayerstat(i,'active') then begin if cooldown[i] > 0 then cooldown[i] := cooldown[i] - 1 else begin givebonus(i,1); cooldown[i] := 20; end; if coolbarret[i] > 0 then coolbarret[i] := coolbarret[i] - 1; end;end;end;
did you add global array coolbarret?
var cooldown: array [1..32] of byte; coolbarret: array [1..32] of byte;procedure AppOnIdle(Ticks: integer);var i: Byte; hp: integer;begin for i := 1 to 32 do if getplayerstat(i,'active') then begin if cooldown[i] > 0 then cooldown[i] := cooldown[i] - 1 else begin hp:=GetPlayerStat(i,'health'); GiveBonus(i,1); DoDamage(i,GetPlayerStat(i,'health')-hp); cooldown[i] := 20; end; -here i think its missing- if coolbarret[i] > 0 then coolbarret[i] := coolbarret[i] - 1; end;end;end;procedure OnPlayerRespawn(ID: byte);begin cooldown[id] := 1;end;procedure OnJoinTeam(ID, Team: byte);var w: Byte;begin for w := 2 to 14 do SetWeaponActive(ID,w,false);end;procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: byte);begin if PrimaryNum = 1 then ForceWeapon(ID,15,16,0);end;procedure OnFlagScore(ID, TeamFlag: byte);begin GiveBonus(ID,3);end;function OnPlayerCommand(ID: Byte; Text: string): boolean;begin if Text = '/barret' then if coolbarret := 0 then begin ForceWeapon(ID,8,16,0); coolbarret[id] := 120; end; Result := false;end;
but don't find the fail... ;/ There are 4ends and 3begins...