Raised This Month: $90 Target: $400


Thread Tools Display Modes
Prev Previous Post   Next Post Next
Veteran Member
Join Date: Mar 2004
Plugin ID:
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    Plugin Description:
    Adds Knife Mugging to Counter-Strike: Source
    Old 04-12-2007 , 23:53   KnifeMug
    Reply With Quote #1

    This plugin does 3 different forms of knife mugging.
    • 1: Hard cash value
      • Always takes either the value set or as much money as the victim has and gives to killer
    • 2: Percentage
      • Take a percentage of the victim's cash and gives it to the killer
    • 3: Active Mugging/Damage Mugging
      • This will take a certain percentage of the victims money dependant on the damage that the attacker does. (Does not necessarily have to kill)
        • 01-20 Damage: 25% (1/4)
        • 21-99 Damage: 33% (1/3)
        • 100 > Damage: 50% (1/2)
    • km_mugcash
      • 0 = Off
      • 1 = Hard Cash (km_mugcash value)
      • 2 = Percentage on Death (km_mugpercent value)
      • 3 = Percentage on Damage
    • km_mugcash
      • Sets the cash for knife mugging
      • Default Values: Anywhere from 1 to 16000
    • km_mugpercent
      • Sets the amount of money taken in a mugging based on percent
      • MUST BE A DECIMAL VALUE. I personally suggest 0.33
      • Default Values: 0.0 to 1.0

    • 2.0.0
      • Rewrite to optimize code a bit and make easier to manage
      • Removed sm_damagemugging (replaced with km_enable 3)
      • Replaced sm_mugcash with km_mugcash
      • Replaced sm_mugpercent with km_mugpercent
      • Fixed version cvar. km_version
    • 1.1.0
      • Added km_version cvar
      • Added translations file
      • Change FloatRound to RoundFloat to keep with consistency.
    • 1.0.3
      • Fixed a potential bug that could sometimes cause crashes
    • 1.0.2
      • Added a console based output for all mugs
    • 1.0.1
      • Fixed a bug that prevented the plugin from working sometimes when dealing with player_hurt.
      • Now uses new native GetClientOfUserId instead of FindEntity function.
      • Made code smaller (used a smaller font) - joke...LAUGH! (thank you to whoever's setinfo this is on irc and bailopan for saying it
    • 1.0.0
      • Released

    • Step 1:
      • Click "Get Plugin" at the bottom of the post and save to your addons\sourcemod\plugins directory
    • Step 2:
      • Download the "plugin.knifemug.txt" file and put it into your addons\sourcemod\translations directory

    Thank you to everyone who helped out on this . I could list, but you know who you are.

    And of course thanks to BAILOPAN, DamagedSoul, and the rest of the SourceMod dev team for working out a few snags I hit.

    Thank you to SteamFriends for allowing me to test this on their servers.

    Oh yeah, thanks to mattie for the original knife mugging concept (sorry man, I just don't like eventscripts)
    Attached Files
    File Type: sp Get Plugin or Get Source (knifemug.sp - 6182 views - 12.0 KB)
    File Type: txt knifemug.phrases.txt (398 Bytes, 3274 views)
    File Type: cfg knifemug.cfg (1.4 KB, 2933 views)

    Last edited by FlyingMongoose; 04-26-2008 at 09:41. Reason: Update (version 2.0.0)
    FlyingMongoose is offline

    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump

    All times are GMT -4. The time now is 20:56.

    Powered by vBulletin®
    Copyright ©2000 - 2019, vBulletin Solutions, Inc.
    Theme made by Freecode