Top Killer Script

A Config Script for Counter-Strike: Source

Yo, buddy. We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending Woomaps points.
  • Post: Give Woomaps your thoughts on this Script.
  • Vote: Help Woomaps win the Monthly Awards.
  • Rate: Give this Script a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Script.
  • Watch: Get notified when this Script is updated.
Mascot

Resistance is futile...

Sign up

Already a Bananite? Login

58 lines | 2 kb | Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Put this in cstrike/addons/eventscripts/topkill/es_topkill.txt
and add es_load topkill to config file.

EventScripts:
// Rewritten by Medda from cfg.file to txt.file.
// Requires EventScripts Latest
//
block load
{
// ADMIN SETTINGS
//
// Minimum # of kills to qualify as Top Killer.
// Top Killer message will only display if there are more than this many kills:
   es_xsetinfo TOPKILL_MINKILLS 0

// Allow ties
// 0: if there is a tie, it will only display the first Top Killer.
// 1: if there is a tie, there is no Top Killer.
es_xsetinfo TOPKILL_SOLO 1

// Popup display: 0=off, 1=on (1=requires Mani Admin Plugin)
es_xsetinfo TOPKILL_POPUP 0
}

event player_activate
{
   es_setinfo playerkillvar empty
      es_format playerkillvar "playerkills_%1" event_var(userid)
         es_setinfo server_var(playerkillvar) 0
}

event round_start
{
   es_setinfo mostkills 0
      es_setinfo winner "nobody"
}

event player_spawn
{
   es_setinfo playerkillvar empty
      es_format playerkillvar "playerkills_%1" event_var(userid)
         es_setinfo server_var(playerkillvar) 0
}

event player_death
{
   es_format playerkillvar "playerkills_%1" event_var(attacker)
      if (event_var(es_userteam) notequalto event_var(es_attackerteam)) then es_math server_var(playerkillvar) + 1
         if (server_var(server_var(playerkillvar)) equalto server_var(mostkills)) then es_xif (server_var(TOPKILL_SOLO) equalto 1) then es_xsetinfo winner topkillTIE
            if (server_var(server_var(playerkillvar)) greaterthan server_var(mostkills)) then es_setinfo winner event_var(es_attackername)
               if (server_var(server_var(playerkillvar)) greaterthan server_var(mostkills)) then es_setinfo mostkills server_var(server_var(playerkillvar))
}

event round_end
{
   if (server_var(mostkills) greaterthan server_var(TOPKILL_MINKILLS)) then es_xif (server_var(winner) notequalto topkillTIE) then es_xif (server_var(TOPKILL_POPUP) equalto 0) then es_xcentermsg TOP KILLER: server_var(winner) |||||| KILLS: server_var(mostkills)
      if (server_var(mostkills) greaterthan server_var(TOPKILL_MINKILLS)) then es_xif (server_var(winner) notequalto topkillTIE) then es_xif (server_var(TOPKILL_POPUP) equalto 1) then es_xcentermsg TOP KILLER: server_var(winner) |||||| KILLS: server_var(mostkills)
}

Posts

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share

Credits

Key Authors
Medda
Unknown

Submitter

Woomaps avatar
Woomaps Offline
Member Joined 11y
1,355 points Ranked 3474th

Woomaps
Redistributor
Are you the owner? Request Ownership
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Stats

Posts
2
Views
3,046
Date Added
11y
bcp.crwdcntrl.net tracking pixel