Official Soldat Forums

Server Talk => Scripting Discussions and Help => Topic started by: Zyyn on May 19, 2007, 05:59:35 pm

Title: First Blood script problem
Post by: Zyyn on May 19, 2007, 05:59:35 pm
I am trying to add the first blood script to my server.(Without the +5 point bonus for first kill)
This code.
Code: [Select]
var
FirstBlood: string;

procedure fb_OnMapChange(NewMap: string);
begin
FirstBlood := '0';
end;

procedure fb_OnPlayerKill(Killer, Victim: byte; Weapon: string);
begin
if (FirstBlood = '0') then begin
if (Killer <> Victim) then begin
FirstBlood := '1';
WriteConsole(0,'FIRSTBLOOD! '+IDToName(Victim)+' killed by '+IDToName(Killer),RGB(0,255,255));
DrawText(0,'FIRST BLOOD !',330,RGB(255,0,0),1.10,20,370);
end;
end;
end;
But I get this error...

07-05-19 18:56:15    Console Log Started
07-05-19 18:56:15 Loaded weapons mod "Default mod v1.4"
07-05-19 18:56:15 Welcome to Soldat 1.4.0
07-05-19 18:56:15 
07-05-19 18:56:15 
07-05-19 18:56:15 
07-05-19 18:56:15 
07-05-19 18:56:15 
07-05-19 18:56:15 
07-05-19 18:56:15 Shutting server...
07-05-19 18:56:15 Shutting down admin server...
Title: Re: First Blood script problem
Post by: FliesLikeABrick on May 19, 2007, 07:12:06 pm
please use code tags