0 Members and 1 Guest are viewing this topic.
I can script you something like this. I might realease it when ready. =)Edit : Can you tell me your objects we can buy and their prices ?
OoThis is the second time I hear about someone hacking my nooblottery script.Very nice
We had a version of the NoobLottery that would give you the chance to win nades(clusters too)\pred\mutes (3-5-10-29 minutes) with the ban if the person leaves before his time is up. What you'd do is type !ticket and draw for a prize.
Quote from: miketh2005 on July 10, 2009, 07:31:20 pmDonate to enesceHAHAHAHAHAHAHA
Donate to enesce
Quote from: demoniac93 on June 09, 2009, 09:15:45 amWe had a version of the NoobLottery that would give you the chance to win nades(clusters too)\pred\mutes (3-5-10-29 minutes) with the ban if the person leaves before his time is up. What you'd do is type !ticket and draw for a prize.Can you explain that better? I think i might do it.
// This is a cash system made by Vince// You can buy items by the shop. You win money by killing others.// Killing others goes like this :: First Kill : 8$ -> Second kill : 16$ -> Third Kill : 32$ [...]ConstSpammer = true; // Spam a help message every 30 seconds varMultiplier: Array[1..32] of boolean;Money: Array [1..32] of integer;NadesPrice, MedicPrice, ClustersPrice, VestPrice, PredPrice, FlammerPrice: integer;Killz: Array [1..32] of integer;Temp: Array [1..32] of 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(Killer, Victim: byte;Weapon: string);beginKillz[Killer] := Killz[Killer] + 1; if Killz[Killer] = 1 then begin //If first kill since respawn Multiplier[Killer] := True; Temp[Killer] := Temp[Killer] + 8; //Only +8 money end; if (Killz[Killer] > 1) and (Multiplier[Killer] = True) then begin //If he has killed more than a guy Temp[Killer] := Temp[Killer] * 2; //Multiply your TEMP money by 2 end; if Killer = Victim then begin //If he's killed Multiplier[Killer] := False; Money[Killer] := Money[Killer]; //Add the TEMP money to your TOTAL money Killz[Killer] := Killz[Killer] + 0; //Set killcount to 0 Killz[Killer] := 0; Temp[Killer] := 0; end; //Add the TEMP money Money[Killer] := Money[Killer] + Temp[Killer]; WriteConsole(Killer, ' You Gained $' + IntToStr(Temp[Killer]), RGB(251,102,1)) end;procedure OnPlayerRespawn(ID: Byte); begin WriteConsole(ID, ' You now have $' + IntToStr(Money[ID]), RGB(251,102,1)) Multiplier[ID] := False; Money[ID] := Money[ID]; //Add the TEMP money to your TOTAL money Killz[ID] := Killz[ID] + 0; //Set killcount to 0 Killz[ID] := 0; Temp[ID] := 0; end; function OnPlayerCommand(ID: Byte; Text: string): boolean;begin if regExpMatch('^/(char|money)$', Text) then begin WriteConsole(ID, ' You actually have $' + IntToStr(Money[ID]), RGB(251,102,1)); end;if regExpMatch('^/(buy grenade|buy nade)$', Text) then begin if Money[ID] >= NadesPrice then begin Money[ID] := Money[ID] - NadesPrice ; GiveBonus(ID,4); // DONE WriteConsole(ID, ' You just bought grenades, now have $' + IntToStr(Money[ID]), RGB(251,102,1)); end else WriteConsole(ID, ' You do not have enough money ', RGB(251,102,1));end; if regExpMatch('^/(buy medic|buy med|buy health)$', Text) then begin //same with these If Money[ID] >= MedicPrice then begin Money[ID] := Money[ID] - MedicPrice SpawnObject(GetPlayerStat(ID,'x'),GetPlayerStat(ID,'y'),16); // DONE WriteConsole(ID, ' You just bought Medic, now have $' + IntToStr(Money[ID]), RGB(251,102,1)); end else WriteConsole(ID, ' You do not have enough money ', RGB(251,102,1));end; if regExpMatch('^/(buy clu|buy clusters)$', Text) then begin If Money[ID] >= ClustersPrice then begin Money[ID] := Money[ID] - ClustersPrice ; SpawnObject(GetPlayerStat(ID,'x'),GetPlayerStat(ID,'y'),22); // DONE WriteConsole(ID, ' You just bought Clusters, now have $' + IntToStr(Money[ID]), RGB(251,102,1)); end else WriteConsole(ID, ' You do not have enough money ', RGB(251,102,1));end; if regExpMatch('^/(buy vest|buy bulletproof)$', Text) then begin If Money[ID] >= VestPrice then begin Money[ID] := Money[ID] - VestPrice ; SpawnObject(GetPlayerStat(ID,'x'),GetPlayerStat(ID,'y'),19); // DONE WriteConsole(ID, ' You just bought Clusters, now have $' + IntToStr(Money[ID]), RGB(251,102,1)); end else WriteConsole(ID, ' You do not have enough money ', RGB(251,102,1));end; if regExpMatch('^/(buy pred|buy predator)$', Text) then begin if Money[ID] >= PredPrice then begin Money[ID] := Money[ID] - PredPrice ; GiveBonus(ID, 1); // DONE WriteConsole(ID, ' You just bought a Pred Kit, now have $' + IntToStr(Money[ID]), RGB(251,102,1)); end else WriteConsole(ID, ' You do not have enough money ', RGB(251,102,1));end; if regExpMatch('^/(buy flammer)$', Text) then begin if Money[ID] >= FlammerPrice then begin Money[ID] := Money[ID] - FlammerPrice; SpawnObject(GetPlayerStat(ID,'x'),GetPlayerStat(ID,'y'),18); // DONE WriteConsole(ID, ' You just bought a Flammer, now have $' + IntToStr(Money[ID]), RGB(251,102,1)); end else WriteConsole(ID, ' You do not have enough money ', RGB(251,102,1)); end;If regExpMatch('^/(shop|prices|buylist|help)$', Text) then begin WriteConsole(ID, ' /char - See current char info ', RGB(251,102,1)); WriteConsole(ID, ' /buy nades - Buy grenades for $' + IntToStr(NadesPrice), RGB(251,117,1)); WriteConsole(ID, ' /buy medic|health|med - Buy medic for $' + IntToStr(MedicPrice), RGB(251,132,1)); WriteConsole(ID, ' /buy clu|clusters - Buy clusters nades for $' + IntToStr(ClustersPrice), RGB(251,147,1)); WriteConsole(ID, ' /buy vest|bulletproof - Buy a bulletproof vest for $' + IntToStr(VestPrice), RGB(251,162,1)); WriteConsole(ID, ' /buy pred|predator - Buy a pred kit for $' + IntToStr(PredPrice), RGB(251,177,1)); WriteConsole(ID, ' /buy flammer - buy a flammer for $' + IntToStr(FlammerPrice), RGB(251,192,1));end;end;procedure AppOnIdle(Ticks: cardinal);Vari: byte;begin For i := 1 to 32 do if (Ticks mod (60* 30) = 0) then begin if spammer = true then WriteConsole(i, ' Write /help or /shop for more informations ', RGB(251,102,1)); end;end;
procedure AppOnIdle(Ticks: cardinal);Vari: byte;begin For i := 1 to 32 do if (Ticks mod (60* 30) = 0) then begin if spammer = true then WriteConsole(i, ' Write /help or /shop for more informations ', RGB(251,102,1)); end;end;
procedure AppOnIdle(Ticks: cardinal);begin if spammer = true then begin if (Ticks mod (60* 90) = 0) then WriteConsole(0, ' Write /help or /shop for more informations ', RGB(251,102,1)); end;end;