Raised This Month: $7 Target: $400
 1% 

Double Knife Frags


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   v3x (159)
Rul4
Senior Member
Join Date: Sep 2008
Location: Argentina
Old 09-14-2008 , 23:18   Double Knife Frags
Reply With Quote #1

I've always thought that the skill involved in killing someone with the knife should be rewarded with a higher score.

This is an extremely simple plugin that awards 2 frags instead of 1 when you humiliate someone with the knife.
It also gives a random amount of the victims money to the killer (0%, 25%, 50%, 75% or 100%).

Config vars:

kdf_enabled: enable or disable de plugin (default = 1)
kdf_sounds: if it should play the "humiliation" sound (default = 1)
kdf_frags: how many additional frags are awarded for the killing (default = 1)
kdf_stealmoney: if the killer gets a random part of the victim's money (default = 1)

Cheers,
Rul4
Attached Files
File Type: sma Get Plugin or Get Source (kdf.sma - 8399 views - 2.2 KB)

Last edited by Rul4; 09-16-2008 at 11:45.
Rul4 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-15-2008 , 00:37   Re: Double Knife Frags
Reply With Quote #2

You should check first if weapon is knife, then check fot killer, victim etc..
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
BloodMan
Senior Member
Join Date: Apr 2008
Location: Lithuania
Old 09-15-2008 , 07:53   Re: Double Knife Frags
Reply With Quote #3

How to make that only terrorists gets 2 frags awards when they kill ct's? I need it for my zombie mod.
BloodMan is offline
Send a message via Skype™ to BloodMan
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 09-15-2008 , 09:57   Re: Double Knife Frags
Reply With Quote #4

PHP Code:
if (weapon[0] == 'k' && get_user_team(killer) == && get_user_team(victim) == 2)

__________________
hleV is offline
Old 09-15-2008, 10:55
Rul4
This message has been deleted by Rul4. Reason: Newer version posted
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 09-15-2008 , 15:44   Re: Double Knife Frags
Reply With Quote #5

I prefer to use like this:
PHP Code:
if (weapon[0] == 'k' && get_user_team(killer) != get_user_team(victim))

__________________

anakin_cstrike is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 09-16-2008 , 10:27   Re: Double Knife Frags
Reply With Quote #6

Quote:
Originally Posted by anakin_cstrike View Post
I prefer to use like this:
PHP Code:
if (weapon[0] == 'k' && get_user_team(killer) != get_user_team(victim))

Read again what he asked. The killer MUST be T. Being not in same team as the enemy isn't enough.
__________________
hleV is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 09-16-2008 , 11:32   Re: Double Knife Frags
Reply With Quote #7

Oh....sorry, my mistake.
__________________

anakin_cstrike is offline
MattFresh
Member
Join Date: Sep 2008
Location: Avondale, Arizona
Old 09-16-2008 , 11:47   Re: Double Knife Frags
Reply With Quote #8

Very nice plugin, thought about adding a model for it??

-Matt
MattFresh is offline
Send a message via AIM to MattFresh Send a message via MSN to MattFresh
Rul4
Senior Member
Join Date: Sep 2008
Location: Argentina
Old 09-16-2008 , 14:23   Re: Double Knife Frags
Reply With Quote #9

Quote:
Originally Posted by MattFresh View Post
Very nice plugin, thought about adding a model for it??

-Matt
Thanks. What do you mean? A new knife model?
Rul4 is offline
MattFresh
Member
Join Date: Sep 2008
Location: Avondale, Arizona
Old 09-16-2008 , 14:27   Re: Double Knife Frags
Reply With Quote #10

Yes, making your own model for it, you know..? And more sounds of your own.

Also, do the frags go towards Godlike, Killing Spree, etc..?
MattFresh is offline
Send a message via AIM to MattFresh Send a message via MSN to MattFresh
Old 09-16-2008, 16:05
hleV
This message has been deleted by Exolent[jNr]. Reason: Stop bickering and flaming
Old 09-16-2008, 16:13
MattFresh
This message has been deleted by Exolent[jNr]. Reason: Stop bickering and flaming
Old 09-16-2008, 16:20
PremunitioN
This message has been deleted by PremunitioN. Reason: Matt does not deserve this..I used too much hate.
Old 09-16-2008, 16:26
MattFresh
This message has been deleted by Exolent[jNr]. Reason: Stop bickering and flaming
Old 09-16-2008, 16:33
hleV
This message has been deleted by Exolent[jNr]. Reason: Stop bickering and flaming
Old 09-16-2008, 16:36
MattFresh
This message has been deleted by Exolent[jNr]. Reason: Stop bickering and flaming
Old 09-16-2008, 18:44
PremunitioN
This message has been deleted by Exolent[jNr]. Reason: Stop bickering and flaming
Reply


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 23:20.


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