0 Members and 1 Guest are viewing this topic.
varFirstBlood: string;procedure OnMapChange(NewMap: string);beginFirstBlood := '0';end;procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);beginif (FirstBlood = '0') then beginif (Killer <> Victim) then beginFirstBlood := '1';WriteConsole(0,'FIRSTBLOOD! '+IDToName(Victim)+' killed by '+IDToName(Killer),$FF3520);WriteConsole(0,IDToName(Killer)+' gained +4 extra point !!',$FF3520);SetScore(Killer,GetPlayerStat(Killer,'KILLS')+4);DrawText(0,'FIRST BLOOD !',250,RGB(255,0,0),0.27,6,370);end;end;end;
varFirstBlood: boolean;procedure OnMapChange(NewMap: string);beginFirstBlood := true;end;procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);beginif FirstBlood then beginif (Killer <> Victim) then beginFirstBlood := false;WriteConsole(0,'FIRSTBLOOD! '+IDToName(Victim)+' killed by '+IDToName(Killer),$FF3520);WriteConsole(0,IDToName(Killer)+' gained +4 extra point !!',$FF3520);SetScore(Killer,GetPlayerStat(Killer,'KILLS')+4);DrawText(0,'FIRST BLOOD !',250,RGB(255,0,0),0.27,6,370);end;end;end;
What do you mean by overdrawn, the part not working is after the kill messages...