0 Members and 1 Guest are viewing this topic.
varCash:Integer;i,BonusID,ID,HC,EBN,ED,EBNM,EDM,DED:Byte;Command:String;deathexp: Boolean;procedure Nova(const X,Y,speed,decentralize,power: single; ID,style: byte; n: integer);var i: integer; angle: single;begin angle := 2*pi/n; for i:=0 to n do CreateBullet(X+cos(angle*i)*decentralize, Y+sin(angle*i)*decentralize, cos(angle*i)*speed, sin(angle*i)*speed, power,style , ID );end;procedure ActivateServer();beginCash:=0;EBN:=3;EBNM:=1;EDM:=1;BonusID:=4;DED:=25;end;procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);beginif deathexp = true then begin{for i := 1 to 5 do}CreateBullet(GetPlayerStat(Victim, 'X'), GetPlayerStat(Victim, 'Y') - 0, 0, 0,100, 4, Killer); Nova(GetPlayerstat(Victim,'X'),Getplayerstat(Victim,'Y'),0,ED,0, Killer,4,EBN);Givebonus(Killer,BonusID)Cash :=Cash+1;//WriteLn('Cash Updated');//WriteConsole(0,'Global Player Cash: '+inttostr(Cash),$EE81FAA1);//WriteLn('Cash Displayed');end;function OnPlayerCommand(ID: Byte; Text: string): boolean;beginif Text = '/cash' then beginWriteConsole(0,IdtoName(ID)+' has just requested Cash levels!',$EE81FAA1);WriteConsole(0,'Global Player Cash: '+inttostr(Cash),$EE81FAA1);end;if Text = '/buy pred' then beginif Cash < 50 then beginWriteConsole(0,IdtoName(ID)+' just tried to purchase predator, not enough funds!',$EE81FAA1);end; if Cash >= 50 then beginCash :=Cash-50;WriteConsole(0,IdtoName(ID)+' has just bought predator for 50 Cash',$EE81FAA1);end;end;if Text = '/buy bes' then beginif Cash < 65 then beginWriteConsole(0,IdtoName(ID)+' just tried to purchase berserker, not enough funds!',$EE81FAA1);end; if Cash >= 65 then beginCash :=Cash-65;WriteConsole(0,IdtoName(ID)+' has just bought berserker for 65 Cash',$EE81FAA1);GiveBonus(ID, 2);end;end;if Text = '/buy clusters' then beginif Cash < 1000 then beginIf BonusID <> 5 then beginWriteConsole(0,IdtoName(ID)+' just tried to purchase the clusters, not enough funds!',$EE81FAA1);end;end; if BonusID = 5 then beginWriteConsole(ID,'cluster grenades are already in affect, try normal nades!',$EE81FAA1);end;if Cash >= 1000 then beginIf BonusID <> 5 then beginCash :=Cash-1000;BonusID:=5;WriteConsole(0,IdtoName(ID)+' has just bought the cluster grenade upgrade for 1000 Cash',$EE81FAA1);GiveBonus(ID,BonusID);end;end;end;if Text = '/buy nades' then beginif Cash < 1000 then beginIf BonusID <> 4 then beginWriteConsole(0,IdtoName(ID)+' just tried to purchase the nades, not enough funds!',$EE81FAA1);end;end;if BonusID = 4 then beginWriteConsole(ID,'regular grenades are already in affect, try clusters!',$EE81FAA1);end;if Cash >= 1000 then beginIf BonusID <> 4 then beginCash :=Cash-1000;BonusID:=4;WriteConsole(0,IdtoName(ID)+' has just bought the regular grenade upgrade for 1000 Cash',$EE81FAA1);GiveBonus(ID,BonusID);end;end;end;//if Text = '/buy dex' then begin//if Cash < 3000 then begin//WriteConsole(0,IdtoName(ID)+' just tried to purchase bigger bangs, not enough //funds!',$EE81FAA1);//end;//if Cash >= 3000 then begin//EBNM :=EBNM+1://EBN :=3*EBNM;//EDM :=EDM+1;//ED := (5*EDM)+ED;//Cash :=Cash-3000;//WriteConsole(0,IdtoName(ID)+' has just bought bigger bangs for 3000 //Cash',$EE81FAA1);//end;//end;//if Text = '/buy holycross' then begin//if Cash < 1000 then begin//WriteConsole(0,IdtoName(ID)+' just tried to purchase Holy Cross, not enough //funds!',$EE81FAA1);//end; //if Cash >= 1000 then begin//HC:=1;//WriteConsole(0,IdtoName(ID)+' has just bought Holy Cross for 1000 Cash',$EE81FAA1);//end;//end;if Text = '/items' then beginWriteConsole(0,'/buy pred - gives u pred bonus - 50 cash',$EE81FAA1);WriteConsole(0,'/buy bes - gives u berserker bonus - 65 cash',$EE81FAA1);WriteConsole(0,'/buy clusters - upgrades your nade bonus to clusters - 1000 cash',$EE81FAA1);WriteConsole(0,'/buy nades - upgrades your cluster bonus to nades - 1000 cash',$EE81FAA1);WriteConsole(0,'---->grenade upgrades affects whole team',$EE81FAA1);//WriteConsole(0,'/buy holycross - Kills all zombies in Red Team Base on Red Team score //- 1000 cash',$EE81FAA1);end;end;procedure OnMapChange(NewMap: string);begindeathexp := true;For i := 0 to Numplayers dobeginGiveBonus(i,BonusID);end;end;procedure OnPlayerRespawn(ID: byte);beginGiveBonus(ID, BonusID);end;//procedure OnJoinTeam(ID, Team: byte);//begin//GiveBonus(ID, BonusID);//end;//procedure OnFlagScore(ID, TeamFlag: byte);//begin//if HC = 1 then begin////end;//end;function OnCommand(ID: Byte; Text: string): boolean;beginif GetPiece(text,' ',0) = '/raisecash' then beginCash := Cash + Strtoint(GetPiece(Text,' ',1));WriteConsole(0,'Admin has just deposited '+Getpiece(Text,' ',1)+' Global Player Cash!',$EE81FAA1);end;if Text = '/deathexplode' then beginWriteConsole(0,'death explosions enabled', $00EE0000); WriteLn('death explosions have been enabled by ' + IntToStr(ID) + '!'); deathexp := True;end;if Text = '/nodeathexp' then beginWriteConsole(0,'death explosions disabled', $00EE0000); WriteLn('death explosions have been disabled by ' + IntToStr(ID) + '!'); deathexp := False;end;end;
[21:1]Unknown identifier 'Nova''
var flak,rd,bb: Boolean; Timer,i,ObjectID:integer; Cash:byte;deathexp: Boolean;procedure Nova(const X,Y,speed,decentralize,power: single; ID,style: byte; n: integer);var i: integer; angle: single;begin angle := 2*pi/n; for i:=0 to n do CreateBullet(X+cos(angle*i)*decentralize, Y+sin(angle*i)*decentralize, cos(angle*i)*speed, sin(angle*i)*speed, power,style , ID );end;procedure ActivateServer();beginCash:=0;end; function OnCommand(ID: Byte; Text: string): Boolean; var destroy:Byte; begin if Text = '/flakb' then begin WriteLn('The flak event has been initiated by ' + IntToStr(ID) + '!'); WriteConsole(0,'The Flak shells event is beginning!',$00EE00EE); flak:= True; end; if Text = '/flak end' then begin WriteLn('The flak event has been cancelled by ' + IntToStr(ID) + '!'); WriteConsole(0, 'The Flak shells event has finished!', $00EE00EE); WriteConsole(0, 'server administration hopes that you enjoyed the event!', $EEEE00EE); flak:= False; end; if Text = '/killall' then begin for destroy := 1 to 32 do DoDamage(destroy,99999999) WriteConsole(0, 'ALL GO BOOM!', $00EE00EE); end;if Text = '/rdeath' then beginrd := True;WriteConsole(0,'Wacky deaths enabled', $00EE0000); end;if Text = '/nrdeath' then beginrd := False;WriteConsole(0,'Wacky deaths disabled', $00EE0000); end;if Text = '/bb1' then beginbb := True;end;if Text = '/bb0' then beginbb := False;end;end; function OnPlayerDamage(Victim, Shooter: Byte; Damage: Integer): Integer; begin result := Damage; {DoDamage(Victim,9999999);} if flak = True then begin CreateBullet(GetPlayerStat(Victim, 'X'), GetPlayerStat(Victim, 'Y') - 0, 0, 0,100, 10, Shooter); end; end; procedure OnPlayerKill(Killer, Victim: byte;Weapon: string);vari,i2,i3,i4:Byte;beginif rd = true then beginfor i := 1 to NumPlayers doCreateBullet(GetPlayerStat(i,'x'), GetPlayerStat(i,'y') - 0, 0, 0,100, 10, Killer);end; if GetPlayerStat(Killer, 'Name') = 'MR.ZOMBIE' then begin if Killer = Victim then begin end else begin WriteConsole(0,IDtoName(Victim) + ' Just had his head sawed off', $00EE00EE);end;end; if Victim = Killer then begin //begin nova // This message will only happen for selfkilling bots, though. WriteConsole(0, IDtoName(Victim) + ' just annihilated himself', $00EE0000);Nova(GetPlayerstat(Killer,'X'),Getplayerstat(Killer,'Y'),20,15,0, Killer,9,75);end;if bb = True then beginCreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+25, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+25 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-25, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-25 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+50, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+50 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-50, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-50 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+75, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+75 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-75, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-75 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+100, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+100 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-100, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-100 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+125, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+125 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-125, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-125 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+150, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+150 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-150, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-150 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+175, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+175 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-175, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-175 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+200, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+200 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-200, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-200 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+225, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+225 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-225, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-225 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+250, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+250 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-250, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-250 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+275, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+275 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-275, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-275 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+300, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+300 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-300, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-300 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+325, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+325 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-325, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-325 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+350, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+350 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-350, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-350 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+375, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+375 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-375, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-375 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+400, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+400 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-400, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-400 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+425, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+425 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-425, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-425 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+450, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+450 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-450, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-450 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+475, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+475 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-475, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-475 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+500, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+500 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-500, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-500 - 0, 0, 0,100, 10, Killer);//begin extended sideCreateBullet(GetPlayerStat(Victim,'x')+525, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-525, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+550, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-550, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+575, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-575, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+600, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-600, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+625, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-625, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+650, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-650, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+675, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-675, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+700, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-700, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+725, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-725, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+750, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-750, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+775, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-775, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+800, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-800, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+825, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-825, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+850, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-850, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+875, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-875, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+900, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-900, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+925, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-925, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+950, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-950, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+975, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-975, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+1000, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-1000, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+1025, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-1025, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')+1050, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x')-1050, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 10, Killer);//begin extended top/bottomCreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+525 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-525 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+550 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-550 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+575 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-575 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+600 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-600 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+625 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-625 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+650 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-650 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+675 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-675 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+700 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-700 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+725 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-725 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+750 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-750 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+775 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-775 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+800 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-800 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+825 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-825 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+850 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-850 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+875 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-875 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+900 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-900 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+925 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-925 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+950 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-950 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+975 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-975 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+1000 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-1000 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+1025 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-1025 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+1050 - 0, 0, 0,100, 10, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-1050 - 0, 0, 0,100, 10, Killer);end;end; procedure AppOnIdle(Ticks: integer);begin if Timer > 0 then Timer := Timer - 1; if Timer = 0 then beginKillObject(ObjectID); Timer := -1; end;end;function BigBangDeath(Victim:Byte; Killer:Byte): Byte;beginCreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+25, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+25 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-25, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-25 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+50, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+50 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-50, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-50 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+75, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+75 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-75, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-75 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+100, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+100 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-100, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-100 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+125, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+125 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-125, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-125 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+150, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+150 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-150, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-150 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+175, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+175 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-175, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-175 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+200, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+200 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-200, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-200 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+225, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+225 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-225, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-225 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+250, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+250 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-250, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-250 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+275, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+275 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-275, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-275 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+300, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+300 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-300, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-300 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+325, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+325 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-325, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-325 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+350, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+350 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-350, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-350 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+375, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+375 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-375, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-375 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+400, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+400 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-400, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-400 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+425, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+425 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-425, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-425 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+450, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+450 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-450, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-450 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+475, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+475 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-475, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-475 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+500, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')+500 - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-500, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y')-500 - 0, 0, 0,100, 9, Killer);//begin extended sideCreateBullet(GetPlayerStat(Victim,'x')+525, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-525, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+550, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-550, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+575, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-575, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+600, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-600, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+625, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-625, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+650, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-650, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+675, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-675, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+700, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-700, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+725, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-725, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+750, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-750, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+775, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-775, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+800, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-800, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+825, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-825, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+850, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-850, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+875, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-875, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+900, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-900, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+925, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-925, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+950, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-950, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+975, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-975, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+1000, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-1000, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+1025, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-1025, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')+1050, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);CreateBullet(GetPlayerStat(Victim,'x')-1050, GetPlayerStat(Victim,'y') - 0, 0, 0,100, 9, Killer);end;
varCash:Integer;i,BonusID,ID,HC,EBN,ED,EBNM,EDM,DED:Byte;Command:String;deathexp: Boolean;procedure Nova(const X,Y,speed,decentralize,power: single; ID,style: byte; n: integer);var i: integer; angle: single;begin angle := 2*pi/n; for i:=0 to n do CreateBullet(X+cos(angle*i)*decentralize, Y+sin(angle*i)*decentralize, cos(angle*i)*speed, sin(angle*i)*speed, power,style , ID );end;procedure ActivateServer();beginCash:=0;EBN:=3;EBNM:=1;EDM:=1;BonusID:=4;DED:=25;end;procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);beginif deathexp = true then begin{for i := 1 to 5 do}CreateBullet(GetPlayerStat(Victim, 'X'), GetPlayerStat(Victim, 'Y') - 0, 0, 0,100, 4, Killer); Nova(GetPlayerstat(Victim,'X'),Getplayerstat(Victim,'Y'),0,ED,0, Killer,4,EBN);Givebonus(Killer,BonusID)Cash :=Cash+1;//WriteLn('Cash Updated');//WriteConsole(0,'Global Player Cash: '+inttostr(Cash),$EE81FAA1);//WriteLn('Cash Displayed');end;if Victim = Killer then begin //begin nova // This message will only happen for selfkilling bots, though. WriteConsole(0, IDtoName(Victim) + ' just annihilated himself', $00EE0000);Nova(GetPlayerstat(Killer,'X'),Getplayerstat(Killer,'Y'),20,15,0, Killer,9,75);end;end;function OnPlayerCommand(ID: Byte; Text: string): boolean;beginif Text = '/cash' then beginWriteConsole(0,IdtoName(ID)+' has just requested Cash levels!',$EE81FAA1);WriteConsole(0,'Global Player Cash: '+inttostr(Cash),$EE81FAA1);end;if Text = '/buy pred' then beginif Cash < 50 then beginWriteConsole(0,IdtoName(ID)+' just tried to purchase predator, not enough funds!',$EE81FAA1);end; if Cash >= 50 then beginCash :=Cash-50;WriteConsole(0,IdtoName(ID)+' has just bought predator for 50 Cash',$EE81FAA1);end;end;if Text = '/buy bes' then beginif Cash < 65 then beginWriteConsole(0,IdtoName(ID)+' just tried to purchase berserker, not enough funds!',$EE81FAA1);end; if Cash >= 65 then beginCash :=Cash-65;WriteConsole(0,IdtoName(ID)+' has just bought berserker for 65 Cash',$EE81FAA1);GiveBonus(ID, 2);end;end;if Text = '/buy clusters' then beginif Cash < 1000 then beginIf BonusID <> 5 then beginWriteConsole(0,IdtoName(ID)+' just tried to purchase the clusters, not enough funds!',$EE81FAA1);end;end; if BonusID = 5 then beginWriteConsole(ID,'cluster grenades are already in affect, try normal nades!',$EE81FAA1);end;if Cash >= 1000 then beginIf BonusID <> 5 then beginCash :=Cash-1000;BonusID:=5;WriteConsole(0,IdtoName(ID)+' has just bought the cluster grenade upgrade for 1000 Cash',$EE81FAA1);GiveBonus(ID,BonusID);end;end;end;if Text = '/buy nades' then beginif Cash < 1000 then beginIf BonusID <> 4 then beginWriteConsole(0,IdtoName(ID)+' just tried to purchase the nades, not enough funds!',$EE81FAA1);end;end;if BonusID = 4 then beginWriteConsole(ID,'regular grenades are already in affect, try clusters!',$EE81FAA1);end;if Cash >= 1000 then beginIf BonusID <> 4 then beginCash :=Cash-1000;BonusID:=4;WriteConsole(0,IdtoName(ID)+' has just bought the regular grenade upgrade for 1000 Cash',$EE81FAA1);GiveBonus(ID,BonusID);end;end;end;if Text = '/buy dex' then beginif Cash < 3000 then beginWriteConsole(0,IdtoName(ID)+' just tried to purchase bigger bangs, not enough funds!',$EE81FAA1);end;if Cash >= 3000 then beginEBNM :=EBNM+1:EBN :=3*EBNM;EDM :=EDM+1;ED := (5*EDM)+ED;Cash :=Cash-3000;WriteConsole(0,IdtoName(ID)+' has just bought bigger bangs for 3000 Cash',$EE81FAA1);end;end;//if Text = '/buy holycross' then begin//if Cash < 1000 then begin//WriteConsole(0,IdtoName(ID)+' just tried to purchase Holy Cross, not enough //funds!',$EE81FAA1);//end; //if Cash >= 1000 then begin//HC:=1;//WriteConsole(0,IdtoName(ID)+' has just bought Holy Cross for 1000 Cash',$EE81FAA1);//end;//end;if Text = '/items' then beginWriteConsole(0,'/buy pred - gives u pred bonus - 50 cash',$EE81FAA1);WriteConsole(0,'/buy bes - gives u berserker bonus - 65 cash',$EE81FAA1);WriteConsole(0,'/buy clusters - upgrades your nade bonus to clusters - 1000 cash',$EE81FAA1);WriteConsole(0,'/buy nades - upgrades your cluster bonus to nades - 1000 cash',$EE81FAA1);WriteConsole(0,'---->grenade upgrades affects whole team',$EE81FAA1);//WriteConsole(0,'/buy holycross - Kills all zombies in Red Team Base on Red Team score //- 1000 cash',$EE81FAA1);end;end;procedure OnMapChange(NewMap: string);begindeathexp := true;For i := 0 to Numplayers dobeginGiveBonus(i,BonusID);end;end;procedure OnPlayerRespawn(ID: byte);beginGiveBonus(ID, BonusID);end;//procedure OnJoinTeam(ID, Team: byte);//begin//GiveBonus(ID, BonusID);//end;//procedure OnFlagScore(ID, TeamFlag: byte);//begin//if HC = 1 then begin////end;//end;function OnCommand(ID: Byte; Text: string): boolean;beginif GetPiece(text,' ',0) = '/raisecash' then beginCash := Cash + Strtoint(GetPiece(Text,' ',1));WriteConsole(0,'Admin has just deposited '+Getpiece(Text,' ',1)+' Global Player Cash!',$EE81FAA1);end;if Text = '/deathexplode' then beginWriteConsole(0,'death explosions enabled', $00EE0000); WriteLn('death explosions have been enabled by ' + IntToStr(ID) + '!'); deathexp := True;end;if Text = '/nodeathexp' then beginWriteConsole(0,'death explosions disabled', $00EE0000); WriteLn('death explosions have been disabled by ' + IntToStr(ID) + '!'); deathexp := False;end;end;
if Text = '/buy dex' then beginif Cash < 3000 then beginWriteConsole(0,IdtoName(ID)+' just tried to purchase bigger bangs, not enough //funds!',$EE81FAA1);end;if Cash >= 3000 then beginEBNM :=EBMN+1:EBN :=3*EBNM;EDM :=EDM+1;ED := (5*EDM)+ED;Cash :=Cash-3000;WriteConsole(0,IdtoName(ID)+' has just bought bigger bangs for 3000 Cash',$EE81FAA1);end;end;
procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);begin if GetPlayerStat(Killer,'Team') = GetPlayerStat(Victim,'Team') then repeat WriteConsole(Killer,'NOOB TEAMKILLER!!!1111',$00FF00); until false;end;
GiveBonus(ID,4);
varCash:Integer;i,BonusID,ID,HC,EBN,EBNM,ED,EDM,DED:Byte;Command:String;deathexp: Boolean;procedure Nova(const X,Y,speed,decentralize,power: single; ID,style: byte; n: integer);var i: integer; angle: single;begin angle := 2*pi/n; for i:=0 to n do CreateBullet(X+cos(angle*i)*decentralize, Y+sin(angle*i)*decentralize, cos(angle*i)*speed, sin(angle*i)*speed, power,style , ID );end;procedure ActivateServer();begin BonusID:=4; Cash:=0; //EBN:=3; //EBNM:=1; //EDM:=1; //DED:=25;end;procedure OnPlayerKill(Killer, Victim: byte; Weapon: string); begin GiveBonus(Killer,BonusID); Cash :=Cash+1; if deathexp = true then begin {for i := 1 to 5 do} CreateBullet(GetPlayerStat(Victim, 'X'), GetPlayerStat(Victim, 'Y') - 0, 0, 0,100, 4, Killer); Nova(GetPlayerstat(Victim,'X'),Getplayerstat(Victim,'Y'),0,25,0, Killer,4,3); //WriteLn('Cash Updated'); //WriteConsole(0,'Global Player Cash: '+inttostr(Cash),$EE81FAA1); //WriteLn('Cash Displayed'); end; if Victim = Killer then begin //begin nova // This message will only happen for selfkilling bots, though. WriteConsole(0, IDtoName(Victim) + ' just annihilated himself', $00EE0000);Nova(GetPlayerstat(Killer,'X'),Getplayerstat(Killer,'Y'),20,15,0, Killer,9,75); end;end;function OnPlayerCommand(ID: Byte; Text: string): boolean; begin if Text = '/cash' then begin WriteConsole(0,IdtoName(ID)+' has just requested Cash levels!',$EE81FAA1); WriteConsole(0,'Global Player Cash: '+inttostr(Cash),$EE81FAA1); end; if Text = '/buy pred' then begin if Cash < 50 then begin WriteConsole(0,IdtoName(ID)+' just tried to purchase predator, not enough funds!',$EE81FAA1); end; if Cash >= 50 then begin Cash :=Cash-50; WriteConsole(0,IdtoName(ID)+' has just bought predator for 50 Cash',$EE81FAA1); end; end; if Text = '/buy bes' then begin if Cash < 65 then begin WriteConsole(0,IdtoName(ID)+' just tried to purchase berserker, not enough funds!',$EE81FAA1); end; if Cash >= 65 then begin Cash :=Cash-65; WriteConsole(0,IdtoName(ID)+' has just bought berserker for 65 Cash',$EE81FAA1); GiveBonus(ID, 2); end; end; if Text = '/buy clusters' then begin if Cash < 1000 then begin If BonusID <> 5 then begin WriteConsole(0,IdtoName(ID)+' just tried to purchase the clusters, not enough funds!',$EE81FAA1); end; end; if BonusID = 5 then begin WriteConsole(ID,'cluster grenades are already in affect, try normal nades!',$EE81FAA1); end; if Cash >= 1000 then begin If BonusID <> 5 then begin Cash :=Cash-1000; BonusID:=5; WriteConsole(0,IdtoName(ID)+' has just bought the cluster grenade upgrade for 1000 Cash',$EE81FAA1); GiveBonus(ID,BonusID); end; end; end; if Text = '/buy nades' then begin if Cash < 1000 then begin If BonusID <> 4 then begin WriteConsole(0,IdtoName(ID)+' just tried to purchase the nades, not enough funds!',$EE81FAA1); end; end; if BonusID = 4 then begin WriteConsole(ID,'regular grenades are already in affect, try clusters!',$EE81FAA1); end; if Cash >= 1000 then begin If BonusID <> 4 then begin Cash :=Cash-1000; BonusID:=4; WriteConsole(0,IdtoName(ID)+' has just bought the regular grenade upgrade for 1000 Cash',$EE81FAA1); GiveBonus(ID,BonusID); end; end; end; //if Text = '/buy dex' then begin //if Cash < 3000 then begin //WriteConsole(0,IdtoName(ID)+' just tried to purchase bigger bangs, not enough funds!',$EE81FAA1); //end; //if Cash >= 3000 then begin //EBNM :=EBMN+1: //EBN :=3*EBNM; //EDM :=EDM+1; //ED := (5*EDM)+ED; //Cash :=Cash-3000; //WriteConsole(0,IdtoName(ID)+' has just bought bigger bangs for 3000 Cash',$EE81FAA1); //end; //end; //if Text = '/buy holycross' then begin //if Cash < 1000 then begin //WriteConsole(0,IdtoName(ID)+' just tried to purchase Holy Cross, not enough funds!',$EE81FAA1); //end; //if Cash >= 1000 then begin //HC:=1; //WriteConsole(0,IdtoName(ID)+' has just bought Holy Cross for 1000 Cash',$EE81FAA1); //end; //end; if Text = '/items' then begin WriteConsole(0,'/buy pred - gives u pred bonus - 50 cash',$EE81FAA1); WriteConsole(0,'/buy bes - gives u berserker bonus - 65 cash',$EE81FAA1); WriteConsole(0,'/buy clusters - upgrades your nade bonus to clusters - 1000 cash',$EE81FAA1); WriteConsole(0,'/buy nades - upgrades your cluster bonus to nades - 1000 cash',$EE81FAA1); WriteConsole(0,'---->grenade upgrades affects whole team',$EE81FAA1); //WriteConsole(0,'/buy holycross - Kills all zombies in Red Team Base on Red Team score //- 1000 cash',$EE81FAA1); end;end;procedure OnMapChange(NewMap: string);begin For i := 0 to Numplayers do begin GiveBonus(i, BonusID); end; deathexp := true;end;procedure OnPlayerRespawn(ID: byte);begin GiveBonus(i,BonusID);end;//procedure OnJoinTeam(ID, Team: byte);//begin //GiveBonus(ID, BonusID);//end;//procedure OnFlagScore(ID, TeamFlag: byte);//begin //if HC = 1 then begin//end;function OnCommand(ID: Byte; Text: string): boolean;begin if GetPiece(text,' ',0) = '/raisecash' then begin Cash := Cash + Strtoint(GetPiece(Text,' ',1)); WriteConsole(0,'Admin has just deposited '+Getpiece(Text,' ',1)+' Global Player Cash!',$EE81FAA1); end; if Text = '/deathexplode' then begin WriteConsole(0,'death explosions enabled', $00EE0000); WriteLn('death explosions have been enabled by ' + IntToStr(ID) + '!'); deathexp := True; end; if Text = '/nodeathexp' then begin WriteConsole(0,'death explosions disabled', $00EE0000); WriteLn('death explosions have been disabled by ' + IntToStr(ID) + '!'); deathexp := False; end;end;
I dont know where the problem is
section
DONT know where the problem IS
why else do u think i haven't posted a section of the code but instead posted the full script?
if Text = '/buy dex' then begin if Cash < 3000 then begin WriteConsole(0,IdtoName(ID)+' just tried to purchase bigger bangs, not enough funds!',$EE81FAA1); end; if Cash >= 3000 then begin EBNM :=EBMN+1: EBN :=3*EBNM; EDM :=EDM+1; ED := (5*EDM)+ED; Cash :=Cash-3000; WriteConsole(0,IdtoName(ID)+' has just bought bigger bangs for 3000 Cash',$EE81FAA1); end;end;
if Text = '/buy dex' then begin if Cash < 3000 then begin WriteConsole(0,IdtoName(ID)+' just tried to purchase bigger bangs, not enough funds!',$EE81FAA1); end; if Cash >= 3000 then begin EBNM :=EBMN+1: //look a little closer at the entirety of this line... EBMN doesn't exist, and why is it terminated with a colon? EBN :=3*EBNM; EDM :=EDM+1; ED := (5*EDM)+ED; Cash :=Cash-3000; WriteConsole(0,IdtoName(ID)+' has just bought bigger bangs for 3000 Cash',$EE81FAA1); end;end;
varCash:Integer;i,BonusID,ID,HC,EBN,EBNM,ED,EDM,DED:Byte; //its here...on this line.Command:String;deathexp: Boolean;
Hm?If someone buys nades, EVERYONE will get nades - same with clusters. Is that meant to be so?Also, everyone has the same amount of money.. is that also meant to be so?
If someone buys nades, EVERYONE will get nades - same with clusters. Is that meant to be so?
Also, everyone has the same amount of money.. is that also meant to be so?
if BonusID = 4 then begin WriteConsole(ID,'regular grenades are already in affect, try clusters!',$EE81FAA1); end;
Player has clusters, you want to replace them with normal nades. Not possible, don't ask, just doesn't work.
oops, thanks spiltEBNM does exist, its defined as a global variable...oops spotted another typo, EBMN should be EBNM
SpawnObject(getPlayerStat(ID, 'x'), getPlayerStat(ID, 'y')-5, 17);
[GAME]Fullscreen=0Debug_Mode=0Console_Show=1Console_Deaths=1Respawn_Time=0WaveRespawn_Time=600Mouse_Sensitivity=100Play_Music=0Deathmatch_Limit=30Pointmatch_Limit=30Teammatch_Limit=60Capture_Limit=5Rambomatch_Limit=30Infiltration_Limit=90Hold_Limit=80GameStyle=3Friendly_Fire=0Guns_Collide=0Kits_Collide=0Play_Intro=0Loop_Maps=1Bonus_Frequency=5Bonus_FlameGod=0Bonus_Predator=1Bonus_Berserker=1Bonus_Vest=1Bonus_Cluster=1Time_Limit=15Survival_Mode=0Realistic_Mode=0Weapons_Mode=0Weapon_1=1Weapon_2=1Weapon_3=1Weapon_4=1Weapon_5=1Weapon_6=1Weapon_7=1Weapon_8=1Weapon_9=1Weapon_10=1Weapon_11=1Weapon_12=1Weapon_13=1Weapon_14=1Max_Grenades=0Random_Bots=0Random_Bots_1=0Random_Bots_2=0Random_Bots_3=0Random_Bots_4=0Runs=1Profile_Default=0Logging=1Stationary_Guns=1End_Screenshot=0Auto_Record=0Record_Time=2Bullet_Time=1NoSniperLine=0KillConsole_Length=15MainConsole_Length=6Advance_Amount=2Blue_Points_Time=5Red_Points_Capture=30HTF_Points_Time=5MiniMap_Pos_X=285MiniMap_Pos_Y=5Radio=1[GRAPHICS]Adapter=1Color_Depth=32Refresh_Rate=DefaultDithering=0Swap_Effect=1BackBuffers=2Interface_Status_Alpha=200Gradient_Background=0Compatibility=0Antialiasing=0Texture_Filter=2Software=0Bonus_Colors=1Max_Particles=358Bullet_Trails=1Player_Indicator=1Sniper_Line=1Weather=1Interface=DefaultSmooth_Edges=0Window_Resize=0Screen_Width=640Screen_Height=480Gamma=116MiniMap_Transparency=230[SOUND]Volume=77Music_Volume=100Max_Channels=64Bit_Rate=22050Output=0Driver=0Effect1=1Effect2=1Mp3List=0[NETWORK]Port=23098JoinPort=23098Max_Players=23Default_Remote_Host=Game_Password=Admin_Password=******Connection=InternetLobby_Register=1ASE_Register=1Lobby_IP=65.169.85.3Server_Name=#1 Frostys Gather[US]Dedicated=1Clanmatch=0Internet_Connection=3Greeting_Message=Welcome to Frostys Gather[US]Greeting_Message2=this is a scripted server, so whatch out for unepected eventsGreeting_Message3=Have fun, new scripts are being added all the timeServer_Info=Server Hosted by http://rent.enesce.comShowRealLag=1Min_Ping=0Max_Ping=9999Filter_Players=0Filter_Gametype=0Filter_Dedicated=0Filter_NoPassword=0Filter_NoBots=0Filter_Survival=0Filter_Realistic=0Filter_NoBonuses=0Filter_Weapons=0Filter_WeaponsMod=0Filter_BE=0Balance_Teams=1Dont_Forward=0Vote_Percent=75Compression=1Spectator=0Max_Spectators=3Spectator_Chat=1Allow_Download=1MaxConnections=8TooMuch_Packets_LAN=99999TooMuch_Packets_Internet=99999Flooding_Packets_LAN=99999Flooding_Packets_Internet=99999Vote_Cheat_Warnings=8Max_KnifeCheat_Warnings=14Disable_AntiCheat_Kick=1LogFilesUpdate=3600Max_Flood_Warnings=99999Max_Ping_Warnings=99999T1_Snapshot=35T1_MajorSnapshot=19T1_DeadSnapshot=50T1_Heartbeat=135T1_Delta=4T1_Ping=21T1_ThingSnapshot=31PacketRate_Adjusting=0ClientPort=23083BattlEye_Anti_Cheat=0Disable_Minimap=0Advanced_Spectate=1[PLAYER]Name=SoldierMain_Color=$001265AFPants_Color=$00296938Skin_Color=16777215Hair_Color=clWhiteJet_Color=clWhiteHair_Style=4Head_Style=0Chain_Style=2Sec_Weapon=0[CONTROLS]Left=30Right=32Jump=17Crouch=31Fire=mb0Fly=mb1Grenade=18Change=16Drop=33Reload=19Chat=20Prone=45TeamChat=21Weapons=15[BOTS]Difficulty=50Chat=1Raycasting_Quality=15
WriteConsole(0,IdtoName(ID)+' has just bought bigger bangs for '+DEC+' Cash',$EE81FAA1);//try this insteadWriteConsole(0,IdtoName(ID)+' has just bought bigger bangs for '+IntToStr(DEC)+' Cash',$EE81FAA1);
any good pascal compilers out there i can use that are EASY to use? so that debugging will be simpler as i will be able to copy and paste code, and find out the errors that way?
Numplayers works fine
// if Text = '/buy ally' then begin if Cash < 10000 then begin WriteConsole(0,IdtoName(ID)+' just tried to purchase an ally, not enough funds!',$EE81FAA1); end; if Cash >= 10000 then begin Cash :=Cash-10000; Command('/setteam1 '+inttostr(Botn)); WriteConsole(0,IdtoName(ID)+' has just bought an ally for 10000 Cash',$EE81FAA1); end; end;
Command('/maxrespawntime 20');
QuoteNumplayers works fine did u even read that bit? i know that he did mean HighestID but NumPlayers IS working PERFECTLYplease do not post if you havent read the topic, that is really annoying
if Text = '/deathexplode' then begin WriteConsole(0,'death explosions enabled', $00EE0000); //Command('/maxrespawntime 20'); WriteLn('death explosions have been enabled by ' + IntToStr(ID) + '!'); deathexp := True; end; if Text = '/nodeathexp' then begin WriteConsole(0,'death explosions disabled', $00EE0000); //Command('/maxrespawntime 2'); WriteLn('death explosions have been disabled by ' + IntToStr(ID) + '!'); deathexp := False; end;
how do i convert a byte to string
if Text = '/buy ally' then begin if Cash < 10000 then begin WriteConsole(0,IdtoName(ID)+' just tried to purchase an ally, not enough funds!',$EE81FAA1); end; if Cash >= 10000 then begin Cash :=Cash-10000; Command('/setteam1 '+inttostr(Botn)); WriteConsole(0,IdtoName(ID)+' has just bought an ally for 10000 Cash',$EE81FAA1); end; end;
omg type conversion ;_;
@dnmr: forgot type extended for floattostr / strtofloat; Iuuno about char, but should be noted: Chr for Byte -> Char and Ord for Char -> Byte (which then can be InttoStr / StrtoInt`ed).
Quote from: DorkeyDear on April 14, 2010, 12:02:45 pm@dnmr: forgot type extended for floattostr / strtofloat; Iuuno about char, but should be noted: Chr for Byte -> Char and Ord for Char -> Byte (which then can be InttoStr / StrtoInt`ed).wellll, you could add word and whatnot you guys have in there. Never used them though, so didnt want to complicate things by using more weird terms |:
Unknown identifier 'HighestID'
or make a custom function which calculates HighestID for you. You'll need to use it on player join/leave and on adding bots
HighestID:=Numplayers+Numbots;
PlayersActive := NumPlayers - Numbots
function HighestID: byte;begin for Result := 32 downto 1 do if GetPlayerStat(Result, 'Active') = true then break;end;
Function Setteam(ID,Team:Byte):String;beginCommand('/setteam'+Floattostr(Team)+' '+Floattostr(ID));end;function OnPlayerCommand(ID: Byte; Text: string): boolean;beginif Text = '/red' thenbegin Setteam(ID,1);end;end;
[8:11] syntax error
[...]what?
Procedure SetTeam(ID, Team: Byte); Begin Command('/setteam'+IntToStr(Team)+' '+IntToStr(ID));end;
Procedure SetTeam(ID, Team: Byte);begin Command('/setteam'+IntToStr(Team)+' '+IntToStr(ID));end;function OnPlayerCommand(ID: Byte; Text: string): boolean;beginif Text = '/red' thenbegin Setteam(ID,1);end;if Text = '/spec' thenbegin Setteam(ID,5);end;end;function OnCommand(ID: Byte; Text: string): boolean;beginif Text = '/blue' thenbegin Setteam(ID,2);end;if Text = '/green' thenbegin Setteam(ID,3);end;if Text = '/yellow' thenbegin Setteam(ID,4);end;end;
[...]tho if i use Command it errors with numbers if its in the script that why i have to use a function[...]
varCash,DEC,DECC,Botn,EBNN,EBNND,EBNNT,EDMM,EDMMT,EDMMD:Integer;BonusID,ID,EBN,EBNM,ED,EDM,DED,i:Byte;Command:String;deathexp,HC: Boolean;function HighestID: byte;begin for Result := 32 downto 1 do if GetPlayerStat(Result, 'Active') = true then break;end;
[9:2] unexpected end of file[9:2] syntax error
Function HighestID(): Byte; Var Dude: Byte; Begin For Dude := 32 DownTo 1 Do if GetPlayerStat(Dude,'Active') = True Then Break; Result := Dude;end;
it cant be because if thats the case even with HighestID uncommented it wont compile it ONLY compiles if HightestID is COMMENTED OUT, at the moment its working perfect, ONLY because i have HighestID commented out, anyways heres the full script:http://pastebin.com/hwRnkARGit IS compiling but WILL NOT compile with HighestID uncommentedand yes i do believe that the server host is using 265
In 2.6.5, I'd recommend using 32 instead of NumPlayers, and in 2.7.0, since HighestID is implemented in the 2.7.0 ScriptCore, use HighestID over NumPlayers.
...or just use 32 if ur not using that version of scripting core (too lazy to look through the topic )
As mentioned earlier, HighestID is only implemented in the 2.7.0 ScriptCore. In the 2.6.5 ScriptCore, you will have to use something else instead (like 32).
varCash,DEC,DECC,Botn,EBNN,EBNND,EBNNT,EBNNTT,EDMM,EDMMT,EDMMD:Integer;BonusID,ID,EBN,EBNM,ED,EDM,DED,i,Dude,DEXN:Byte;Command:String;deathexp,HC: Boolean;procedure ActivateServer();begin BonusID:=4; Cash:=0; DEC:=3000; EBN:=2; EBNM:=1; EDM:=1; DED:=25; //Botn:=2; DEXN:=1; EBNN:=EBN*20; EBNNTT:=22; EBNNT:=EBNN/3; EBNND:=EBNNT*2; EDMM:=DED*EDM; EDMMT:=EDMM/3; EDMMD:=EDMMT*2;end;if Getplayerstat(Killer,'Name') = 'Mr.Zombie' then beginfor i := 1 to DEXN do Nova(GetPlayerstat(Victim,'X'),Getplayerstat(Victim,'Y'),0,DED*i,25, Victim,10,EBNNTT*i);// Nova(GetPlayerstat(Victim,'X'),Getplayerstat(Victim,'Y'),0,(DED*EDM)/2,25, Victim,10,EBNND);// Nova(GetPlayerstat(Victim,'X'),Getplayerstat(Victim,'Y'),0,(DED*EDM)/3,25, Victim,10,EBNNT);end;
OnPlayerKill(); //Too lazy to look for it fully :P Var I: Integer; Begin if GetPlayerStat(Killer,'Name') = 'Mr. Zombie' Then Begin For I := 1 To Dexn Do Nova(); //Again, dunno it.. end;end;
if Getplayerstat(Killer,'Name') = 'Mr.Zombie' then begin for i := 1 to DEXN do Nova(GetPlayerstat(Victim,'X'),Getplayerstat(Victim,'Y'),0,DED*i,25, Victim,10,EBNNTT*i); // Nova(GetPlayerstat(Victim,'X'),Getplayerstat(Victim,'Y'),0,(DED*EDM)/2,25, Victim,10,EBNND); // Nova(GetPlayerstat(Victim,'X'),Getplayerstat(Victim,'Y'),0,(DED*EDM)/3,25, Victim,10,EBNNT); end;
if Text = '/buy ally' then begin if Cash < 10000 then begin WriteConsole(0,IdtoName(ID)+' just tried to purchase an ally, not enough funds!',$EE81FAA1); end; if Cash >= 10000 then begin Cash :=Cash-10000; Command('/setteam1 '+Floattostr(Botn)); WriteConsole(0,IdtoName(ID)+' has just bought an ally for 10000 Cash',$EE81FAA1); end; end;
Command('/setteam1 '+IntToStr(Botn));
//Command('/setteam1 '+IntToStr(Bottoset));
varCash,DEC,DECC,EBNN,EBNND,EBNNT,EBNNTT,EDMM,EDMMT,EDMMD:Integer;BonusID,ID,EBN,EBNM,ED,EDM,DED,i,Dude,DEXN,Bottoset,SetBotTeam:Byte;Command:String;deathexp,HC: Boolean;procedure Nova(const X,Y,speed,decentralize,power: single; ID,style: byte; n: integer);var i: integer; angle: single;begin angle := 2*pi/n; for i:=0 to n do CreateBullet(X+cos(angle*i)*decentralize, Y+sin(angle*i)*decentralize, cos(angle*i)*speed, sin(angle*i)*speed, power,style , ID );end;procedure ActivateServer();begin BonusID:=4; Cash:=0; DEC:=3000; EBN:=2; EBNM:=1; EDM:=1; DED:=47; Bottoset:=2; DEXN:=1; EBNN:=EBN*30; EBNNTT:=45; EBNNT:=EBNN/3; EBNND:=EBNNT*2; EDMM:=DED*EDM; EDMMT:=EDMM/3; EDMMD:=EDMMT*2; SetBotTeam:=1;end;procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);Var I: Integer; begin GiveBonus(Killer,BonusID); Cash :=Cash+1; if deathexp = true then begin {for i := 1 to 5 do} CreateBullet(GetPlayerStat(Victim, 'X'), GetPlayerStat(Victim, 'Y') - 0, 0, 0,100, 4, Killer); Nova(GetPlayerstat(Victim,'X'),Getplayerstat(Victim,'Y'),0,DED*EDM,25, Killer,4,EBN*2); //WriteLn('Cash Updated'); //WriteConsole(0,'Global Player Cash: '+inttostr(Cash),$EE81FAA1); //WriteLn('Cash Displayed'); end; if Victim = Killer then begin //begin nova // This message will only happen for selfkilling bots, though. WriteConsole(0, IDtoName(Victim) + ' just annihilated himself', $00EE0000); Nova(GetPlayerstat(Killer,'X'),Getplayerstat(Killer,'Y'),0,35,0, Killer,10,5); Nova(GetPlayerstat(Victim,'X'),Getplayerstat(Victim,'Y'),0,70,0, Killer,10,25); Nova(GetPlayerstat(Victim,'X'),Getplayerstat(Victim,'Y'),0,105,0, Killer,10,25); Nova(GetPlayerstat(Victim,'X'),Getplayerstat(Victim,'Y'),0,140,0, Killer,10,25); Nova(GetPlayerstat(Victim,'X'),Getplayerstat(Victim,'Y'),0,175,0, Killer,10,25); Nova(GetPlayerstat(Victim,'X'),Getplayerstat(Victim,'Y'),0,210,0, Killer,10,25); Nova(GetPlayerstat(Victim,'X'),Getplayerstat(Victim,'Y'),0,245,0, Killer,10,25); Nova(GetPlayerstat(Victim,'X'),Getplayerstat(Victim,'Y'),0,270,0, Killer,10,25); Nova(GetPlayerstat(Victim,'X'),Getplayerstat(Victim,'Y'),0,305,0, Killer,10,25); Nova(GetPlayerstat(Victim,'X'),Getplayerstat(Victim,'Y'),0,340,0, Killer,10,25); Nova(GetPlayerstat(Victim,'X'),Getplayerstat(Victim,'Y'),0,375,0, Killer,10,75); Nova(GetPlayerstat(Victim,'X'),Getplayerstat(Victim,'Y'),0,410,0, Killer,10,150); end;if Getplayerstat(Killer,'Name') = 'Mr.Zombie' then beginfor I := 1 to DEXN do Nova(GetPlayerstat(Victim,'X'),Getplayerstat(Victim,'Y'),0,DED*i,25, Victim,10,EBNNTT*i);// Nova(GetPlayerstat(Victim,'X'),Getplayerstat(Victim,'Y'),0,(DED*EDM)/2,25, Victim,10,EBNND);// Nova(GetPlayerstat(Victim,'X'),Getplayerstat(Victim,'Y'),0,(DED*EDM)/3,25, Victim,10,EBNNT);end;end;function OnPlayerCommand(ID: Byte; Text: string): boolean; begin if Text = '/cash' then begin WriteConsole(0,IdtoName(ID)+' has just requested Cash levels!',$EE81FAA1); WriteConsole(0,'Global Player Cash: '+inttostr(Cash),$EE81FAA1); end; if Text = '/buy pred' then begin if Cash < 50 then begin WriteConsole(0,IdtoName(ID)+' just tried to purchase predator, not enough funds!',$EE81FAA1); end; if Cash >= 50 then begin Cash :=Cash-50; WriteConsole(0,IdtoName(ID)+' has just bought predator for 50 Cash',$EE81FAA1); end; end; if Text = '/buy bes' then begin if Cash < 65 then begin WriteConsole(0,IdtoName(ID)+' just tried to purchase berserker, not enough funds!',$EE81FAA1); end; if Cash >= 65 then begin Cash :=Cash-65; WriteConsole(0,IdtoName(ID)+' has just bought berserker for 65 Cash',$EE81FAA1); GiveBonus(ID, 2); end; end; if Text = '/buy clusters' then begin if Cash < 1000 then begin If BonusID <> 5 then begin WriteConsole(0,IdtoName(ID)+' just tried to purchase the clusters, not enough funds!',$EE81FAA1); end; end; if BonusID = 5 then begin WriteConsole(ID,'cluster grenades are already in affect, try normal nades!',$EE81FAA1); end; if Cash >= 1000 then begin If BonusID <> 5 then begin Cash :=Cash-1000; BonusID:=5; WriteConsole(0,IdtoName(ID)+' has just bought the cluster grenade upgrade for 1000 Cash',$EE81FAA1); GiveBonus(ID,BonusID); end; end; end; if Text = '/buy nades' then begin if Cash < 1000 then begin If BonusID <> 4 then begin WriteConsole(0,IdtoName(ID)+' just tried to purchase the nades, not enough funds!',$EE81FAA1); end; end; if BonusID = 4 then begin WriteConsole(ID,'regular grenades are already in affect, try clusters!',$EE81FAA1); end; if Cash >= 1000 then begin If BonusID <> 4 then begin Cash :=Cash-1000; BonusID:=4; WriteConsole(0,IdtoName(ID)+' has just bought the regular grenade upgrade for 1000 Cash',$EE81FAA1); GiveBonus(ID,BonusID); end; end; end; if Text = '/buy dex' then begin if Cash < DEC then begin WriteConsole(0,IdtoName(ID)+' just tried to purchase bigger bangs, not enough funds!',$EE81FAA1); end; if Cash >= DEC then begin EBNM :=EBNM+1; EBN :=3*EBNM; EDM :=EDM+1; ED := (5*EDM)+ED; DEXN :=DEXN+1; WriteConsole(0,IdtoName(ID)+' has just bought bigger bangs for '+inttostr(DEC)+' Cash',$EE81FAA1); Cash :=Cash-DEC; DECC :=DEC/3; DEC :=DEC+DECC; end; end; if Text = '/buy ally' then begin if Cash < 10000 then begin WriteConsole(0,IdtoName(ID)+' just tried to purchase an ally, not enough funds!',$EE81FAA1); end; if Cash >= 10000 then begin Cash :=Cash-10000; //Command('/setteam1 '+IntToStr(Bottoset)); WriteConsole(0,IdtoName(ID)+' has just bought an ally for 10000 Cash',$EE81FAA1); end; end; if Text = '/buy holycross' then begin if Cash < 10000 then begin WriteConsole(0,IdtoName(ID)+' just tried to purchase Holy Cross, not enough funds!',$EE81FAA1); end; if Cash >= 10000 then begin HC:=true; WriteConsole(0,IdtoName(ID)+' has just bought Holy Cross for 10000 Cash',$EE81FAA1); Cash:=Cash-10000; end; end; if Text = '/items' then begin WriteConsole(0,'/buy pred - gives u pred bonus - 50 cash',$EE81FAA1); WriteConsole(0,'/buy bes - gives u berserker bonus - 65 cash',$EE81FAA1); WriteConsole(0,'/buy clusters - upgrades your nade bonus to clusters - 1000 cash',$EE81FAA1); WriteConsole(0,'/buy nades - upgrades your cluster bonus to nades - 1000 cash',$EE81FAA1); WriteConsole(0,'---->grenade upgrades affects whole team',$EE81FAA1); WriteConsole(0,'/buy dex - upgrades normal death explosion size - '+inttostr(DEC)+' Cash',$EE81FAA1); WriteConsole(0,'---->does not affect suicides',$EE81FAA1); WriteConsole(0,'/buy holycross - Kills all zombies on Red Team score - 10000 cash',$EE81FAA1); end;end;procedure OnMapChange(NewMap: string);begin For i := 1 to 32 do begin GiveBonus(i, BonusID); end;end;procedure OnPlayerRespawn(ID: byte);begin GiveBonus(ID,BonusID);end;//procedure OnJoinTeam(ID, Team: byte);//begin //GiveBonus(ID, BonusID);//end;procedure OnFlagScore(ID, TeamFlag: byte);begin if HC = true then begin if GetPlayerStat(ID,'Human') = true then begin WriteConsole(0,'Holy Cross Activated, Alpha team has scored!',$EE81FAA1); DrawText(0,'HULELUJA!',330,RGB(255,255,255),0.20,40,240); for i := 1 to 32 do begin if GetPlayerStat(i,'Human') = false then begin CreateBullet(GetPlayerStat(i, 'X'), GetPlayerStat(i, 'Y') - 0, 0, 0,100, 4, ID); end; end; Cash:=Cash+50 WriteConsole(0,IdtoName(ID)+' earned Alpha Team 50 Cash for scoring!',$EE81FAA1); end; end;end;function OnCommand(ID: Byte; Text: string): boolean;begin if GetPiece(text,' ',0) = '/raisecash' then begin Cash := Cash + Strtoint(GetPiece(Text,' ',1)); WriteConsole(0,'Admin has just deposited '+Getpiece(Text,' ',1)+' Global Player Cash!',$EE81FAA1); end; if Text = '/deathexplode' then begin WriteConsole(0,'death explosions enabled', $00EE0000); //Command('/maxrespawntime 20'); WriteLn('death explosions have been enabled by ' + IntToStr(ID) + '!'); deathexp := True; end; if Text = '/nodeathexp' then begin WriteConsole(0,'death explosions disabled', $00EE0000); //Command('/maxrespawntime 2'); WriteLn('death explosions have been disabled by ' + IntToStr(ID) + '!'); deathexp := False; end;end;
Command('/setteam1 '+IntToStr(Bottoset));
btw, if ppl would answer the f**king question AS SOON AS ITS ASKED this wouldnt happen
Oi, oi, you're lucky any of us are willing to spend our time reading through your code and finding your mistakes for you. It's a privilege, not a right.
vari:Byte;x,y,x2,y2,Dist:Single;procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);var Wepname:String;beginWriteLn(IDtoName(Killer)+' has just used the: '+Weapon);if Weapon = 'Combat Knife' then beginfor i := 1 to 32 do x := GetPlayerStat(Victim,'x'); y := GetPlayerStat(Victim,'y'); x2 := GetPlayerStat(i,'x'); y2 := GetPlayerStat(i,'y');if RayCast(x,y,x2,y2,Dist,800) then beginCreateBullet(GetPlayerStat(i,'x'), GetPlayerStat(i,'y') - 0, 0, 0,100, 4, 1);end;end; end;
WriteLn(IDtoName(i)+' is in range of Raycast');
vari:Byte;x,y,x2,y2,Dist:Single;procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);var Wepname:String;begin WriteLn(IDtoName(Killer)+' has just used the: '+Weapon);//if Weapon = 'Combat Knife' then beginfor i := 1 to 32 dobegin x := GetPlayerStat(Victim,'x'); y := GetPlayerStat(Victim,'y'); x2 := GetPlayerStat(i,'x'); y2 := GetPlayerStat(i,'y');if RayCast(x,y,x2,y2 - 700,Dist,3000) then beginWriteLn(IDtoName(i)+' is in range of Raycast');CreateBullet(GetPlayerStat(i,'x'), GetPlayerStat(i,'y') - 0, 0, 0,100, 4, 1);end;end;//end; end;
nvm, all fixed
Quote from: frosty on April 21, 2010, 01:02:39 amnvm, all fixed dont just "nvm" on us, what was wrong with it? The weapon name?
if RayCast(x,y,x2,y2,Dist,3000) then begin
if RayCast(x,y,x2,y2 - 700,Dist,3000) then begin