Author Topic: First Blood Survival Script  (Read 871 times)

0 Members and 1 Guest are viewing this topic.

Offline Tinysmurf

  • Major
  • *
  • Posts: 76
  • R7.
First Blood Survival Script
« on: December 15, 2010, 02:58:16 am »
Can someone post a first blood script for survival after each round instead of each map? Thanks.



Offline Hacktank

  • Camper
  • ***
  • Posts: 462
  • Soldat Scripter
    • HTZRPG
Re: First Blood Survival Script
« Reply #1 on: December 17, 2010, 02:49:59 pm »
Add this to the top of your script:
Code: [Select]
var blooded: boolean;

Add this to the 'StartRound' function of your script, whatever it may be called:
Code: [Select]
blooded := false;

Add this to OnPlayerKill:
Code: [Select]
if killer <> victim then if not blooded then begin
blooded := true;
// PUT WHAT YOU WANT TO HAPPEN HERE
end
end