0 Members and 1 Guest are viewing this topic.
procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);beginif Weapon = 'Chainsaw' then begin for i := 1 to 32 do begin x := GetPlayerStat(Victim,'x'); y := GetPlayerStat(Victim,'y'); x2 := GetPlayerStat(i,'x'); y2 := GetPlayerStat(i,'y'); if RayCast(x,y,x2,y2,Dist,300000) then begin if i <> Killer then begin if GetPlayerStat(i,'Alive') = true then begin //WriteLn(IDtoName(i)+' is in range of Raycast'); CreateBullet(GetPlayerStat(i,'x'), GetPlayerStat(i,'y') - 0, 0, 0,100, 4, Killer); BioKills:=BioKills+1; end; end; end; end; WriteConsole(Killer,'Bio-Kills: '+Inttostr(BioKills),$EE81FAA1); BioKills:=0; //if Victim <> Killer then if IDtoName(Killer) = 'Mr.Zombie' then if Weapon = 'Chainsaw' then WriteConsole(0,IDtoName(Victim)+' has just screwed up, Lookout!',$EEFA0002); end; end;
//Script Help to Frosty//By Squiddy ~Var PosX, PosY: Array[1..32] of Single;BioKills: Array[1..32] of Integer;Procedure OnPlayerKill(Killer, Victim: Byte; Weapon: String); Var F: Byte; Dist: Single; Begin For F := 1 To 32 Do if GetPlayerStat(F,'Active') = True Then Begin if GetPlayerStat(Killer,'Primary') = 15 Then Begin PosX[Killer] := GetPlayerStat(Killer,'X'); PosY[Killer] := GetPlayerStat(Killer,'Y'); PosX[F] := GetPlayerStat(F,'X'); PosY[F] := GetPlayerStat(F,'Y'); if F <> Killer Then Begin if RayCast(PosX[Killer],PosY[Killer],PosX[F],PosY[F],Dist,30000) = True Then Begin CreateBullet(PosX[F],PosY[F],0,0,150,4,Killer); BioKills[Killer] := BioKills[Killer] + 1; end; end; end; end;end;
WriteConsole(Killer,'Bio-Kills: '+Inttostr(BioKills[Killer]),$EE81FAA1);
if GetPlayerStat(Killer,'Primary') = 15 Then Begin PosX[Killer] := GetPlayerStat(Killer,'X'); PosY[Killer] := GetPlayerStat(Killer,'Y'); PosX[F] := GetPlayerStat(F,'X'); PosY[F] := GetPlayerStat(F,'Y'); if F <> Killer Then Begin if RayCast(PosX[Killer],PosY[Killer],PosX[F],PosY[F],Dist,30000) = True Then Begin CreateBullet(PosX[F],PosY[F],0,0,150,4,Killer); BioKills[Killer] := BioKills[Killer] + 1; if Victim <> Killer then if IDtoName(Killer) = 'Mr.Zombie' then if GetPlayerStat(Killer,'Primary') = 15 Then WriteConsole(0,IDtoName(Victim)+' has just fucked up, Lookout!',$EEFA0002); end; end; end;
Seems like something was wrong with the file, I deleted some blank spaces and it worked, don't ask why.
WriteConsole(Killer,'Bio-Kills: '+Inttostr(BioKills[Killer]+'!'),$EE81FAA1);
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.
holy crap is it that simple?? :Othanks swompie From: May 08, 2010, 05:49:42 amhmm having some troublesemicolon expected on line 12
Var Kills: Array[1..32] of Integer;Procedure OnPlayerKill(Killer, Victim: Byte; Weapon: String); Begin if Killer <> Victim Then Kills[Killer] := Kills[Killer] + 1; end;//Didn't get the rest of the Script..
procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);begin//stuffif Player[Killer] = Player[Victim] then begin//stuffend;end;