[AMXX] Cd Meditator by AssKicR

A Config Script for Counter-Strike 1.6

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 rj. points.
  • Post: Give rj. your thoughts on this Script.
  • Vote: Help rj. 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

Stop Lurking!

Sign up

Already a Bananite? Login

46 lines | 1 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
#include <amxmodx>
#include <amxmisc>

public plugin_init()
{
   register_plugin("No/Old C-D = No kills.", "0.9.4", "BMJ/AssKicR")
   register_event("DeathMsg", "cd_check", "a")  
   return PLUGIN_CONTINUE
}

public cd_check()
{
   new id = read_data(1) // Attacker

   new team = get_user_team(id)
   new deaths = get_user_deaths(id)

   if (!passCheatDeathCheck(id)) {
      set_user_frags(id,0)
      message_begin(MSG_ALL, get_user_msgid("ScoreInfo"))
      write_byte(id)
      write_short(0)
      write_short(deaths)
      write_short(0)
      write_short(team)
      message_end()

      client_print(id, print_center, "Your kills will remain 0 until you are running the C-D client^nGet it at http://www.unitedadmins.com/cdeath.php")
   }

   return PLUGIN_HANDLED
}

public bool:passCheatDeathCheck(id)
{
  new name[32]

  if ( !is_user_connected(id) ) return true
 
  // Ok CD is required Check the Name
  get_user_name(id, name, 31)
  if ( contain(name,"[No C-D]") != -1 || contain(name,"[Old C-D]") != -1 )
    return false
   
  return true
}
a CD Enforcer made by me and BMJ.. (well.. Made by BMJ.. bugfixed by me)
If a person don't have CD or has old CD his frags are resteted to 0, but he keeps his deaths...

Posts

Share

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

More embeddable images

Bookmark and Share

Credits

Original Authors
BMJ
AMXX Script/Codes
Key Authors
AssKicR
Fix some bugs

Submitter

rj. avatar
rj. PAUSE
Member Joined 1y
291 points Ranked 14387th
38 medals 4 legendary 10 rare
  • Submitted 15 Tools Medal icon
  • Submitted 50 Gamefiles Medal icon
  • 15+ Entries! GameBanana’s Christmas Giveaway 2016 Medal icon
  • Thanked 500 submitters Medal icon
  • 2nd Place - Game Poetry Contest Medal icon
  • Submitted 5 Tools Medal icon

rj.
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!

Category

Stats

Posts
1
Views
366
Date Added
5mo
bcp.crwdcntrl.net tracking pixel