0 Members and 3 Guests are viewing this topic.
VarMultiplier: Array [1..32] of boolean;Money: Array [1..32] of integer;Killz: Array [1..32] of integer;procedure OnPlayerRespawn(ID: Byte); Begin Multiplier[ID] := false; Killz[ID] := 0; end; procedure OnPlayerKill(Killer, Victim: byte;Weapon: string); Begin Killz[Killer] := Killz[Killer] + 1; if Killz[Killer] = 1 then Money[Killer] := Money[Killer] + 8; Multiplier[Killer] := true; if (Killz[Killer] > 1) and (Multiplier[Killer] = true) then Money[Killer] := Money[Killer] * 2 if Killer = Victim then begin Multiplier[Killer] := False; Killz[Killer] := 0; Money[Killer] := Money[Killer] + 0; end; Money[Killer] := Money[Killer]; end;
Quote from: miketh2005 on July 10, 2009, 07:31:20 pmDonate to enesceHAHAHAHAHAHAHA
Donate to enesce
varMoney: Array [1..32] of integer;Temp: Array [1..32] of integer;Killz: Array [1..32] of integer;procedure OnPlayerKill(Killer, Victim: byte;Weapon: string);beginKillz[Killer] := Killz[Killer] + 1; if Killz[Killer] = 1 then //If first kill since respawn Temp[Killer] := Temp[Killer] + 8; //Only +8 money if Killz[Killer] >= 1 then //If he has killed more than a guy Temp[Killer] := Temp[Killer] * 2; //Multiply your TEMP money by 2 if Killer = Victim then begin //If he's killed Killz[Killer] := 0; //Set killcount to 0 Money[Killer] := Money[Killer] + Temp[Killer]; //Add the TEMP money to your TOTAL money end; end;//Now it's fixed and compiled.
varMoney: Array [1..32] of integer;Temp: Array [1..32] of integer;Killz: Array [1..32] of integer;procedure OnPlayerKill(Killer, Victim: byte;Weapon: string);beginKillz[Killer] := Killz[Killer] + 1; if Killz[Killer] = 1 then //If first kill since respawn Temp[Killer] := Temp[Killer] + 8; //Only +8 money if Killz[Killer] >= 1 then //If he has killed more than a guy Temp[Killer] := Temp[Killer] * 2; //Multiply your TEMP money by 2 if Killer = Victim then begin //If he's killed Money[Killer] := Money[Killer] + Temp[Killer]; //Add the TEMP money to your TOTAL money Killz[Killer] := 0; //Set killcount to 0 end; end;procedure OnJoinGame(ID, Team: byte);beginKillz[ID] := 0;Temp[ID] := 0;Killz[ID] := 0;end;
// This is a cash system made by Vince// You can buy items by the shop. You win money by killing others. VarMultiplier: Array [1..32] of boolean;Temp: Array [1..32] of integer;Money: Array [1..32] of integer;Killz: Array [1..32] of integer;NadesPrice, MedicPrice, ClustersPrice, VestPrice, PredPrice, FlammerPrice : integer; Procedure ActivateServer(); Begin NadesPrice := 30; MedicPrice := 40; ClustersPrice := 40; VestPrice := 60; PredPrice := 120; FlammerPrice := 140; end; procedure OnJoinGame(ID, Team: byte); Begin Killz[ID] := 0; Temp[ID] := 0; WriteConsole(ID, ' You actually have ' + IntToStr(Money[ID]), RGB(251,102,1)); WriteConsole(ID, ' For more informations type /help ', RGB(251,102,1)); end;procedure OnPlayerRespawn(ID: Byte); Begin Killz[ID] := 0; Temp[ID] := 0; end; procedure OnPlayerKill(Killer, Victim: byte;Weapon: string);beginKillz[Killer] := Killz[Killer] + 1; if Killz[Killer] = 1 then //If first kill since respawn Temp[Killer] := Temp[Killer] + 8; //Only +8 money if Killz[Killer] >= 1 then //If he has killed more than a guy Temp[Killer] := Temp[Killer] * 2; //Multiply your TEMP money by 2 if Killer = Victim then begin //If he's killed Killz[Killer] := 0; //Set killcount to 0 Money[Killer] := Money[Killer] + Temp[Killer]; //Add the TEMP money to your TOTAL money end; end;//Now it's fixed and compiled. function OnPlayerCommand(ID: Byte; Text: string): boolean; begin If Text = '/char' then WriteConsole(ID, ' You actually have ' + IntToStr(Money[ID]), RGB(251,102,1));end;
// This is a cash system made by Vince// You can buy items by the shop. You win money by killing others.varMoney: Array [1..32] of integer;NadesPrice, MedicPrice, ClustersPrice, VestPrice, PredPrice, FlammerPrice: integer; procedure ActivateServer();begin NadesPrice := 30; MedicPrice := 40; ClustersPrice := 40; VestPrice := 60; PredPrice := 120; FlammerPrice := 140;end; procedure OnJoinGame(ID, Team: byte);beginWriteConsole(ID, ' You actually have ' + IntToStr(Money[ID]), RGB(251,102,1));WriteConsole(ID, ' For more informations type /help ', RGB(251,102,1));end;procedure OnPlayerKill(ID, Victim: byte;Weapon: string);begin Money[ID] := Money[ID] + 8;end; function OnPlayerCommand(ID: Byte; Text: string): boolean;beginif Text = '/char' then WriteConsole(ID, ' You actually have ' + IntToStr(Money[ID]), RGB(251,102,1));if Text = '/buy gre' then beginif Money[ID] >= 30 then //stuffif Text = '/buy med' then begin //same with theseif Text = '/buy clu' then beginif Text = '/buy ves' then beginif Text = '/buy pre' then beginif Text = '/buy fla' then beginend;