Raised This Month: $ Target: $400
 0% 

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 - 8423 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
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-04-2008 , 15:56   Re: Double Knife Frags
Reply With Quote #3

Quote:
Originally Posted by connorr View Post
You should check first if weapon is knife, then check fot killer, victim etc..
Still not done...
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Rul4
Senior Member
Join Date: Sep 2008
Location: Argentina
Old 11-06-2008 , 21:05   Re: Double Knife Frags
Reply With Quote #4

Quote:
Originally Posted by connorr View Post
Still not done...
Sorry, I don't get what you mean. Of course the plugin is checking that the weapon is a knife, and the killer is in a different team than the victim. What else should I check?

Thanks,
Rul4.
__________________
Check out my other plugins.
Rul4 is offline
Plug me up
Member
Join Date: Aug 2008
Old 11-07-2008 , 13:05   Re: Double Knife Frags
Reply With Quote #5

Quote:
Originally Posted by Rul4 View Post
Sorry, I don't get what you mean. Of course the plugin is checking that the weapon is a knife, and the killer is in a different team than the victim. What else should I check?

Thanks,
Rul4.
i think he means that u should do like this:
1º - check if weapon is knife
2º - check fot killer, victim etc..
__________________
always +karma to thoose who helps
Plug me up is offline
Rul4
Senior Member
Join Date: Sep 2008
Location: Argentina
Old 11-08-2008 , 01:04   Re: Double Knife Frags
Reply With Quote #6

Quote:
Originally Posted by Plug me up View Post
i think he means that u should do like this:
1º - check if weapon is knife
2º - check fot killer, victim etc..
Ehm... but I am ALREADY checking if weapon is knife, then if the killer is in a different team than the victim, etc. That is what I don't get...
__________________
Check out my other plugins.
Rul4 is offline
BloodMan
Senior Member
Join Date: Apr 2008
Location: Lithuania
Old 09-15-2008 , 07:53   Re: Double Knife Frags
Reply With Quote #7

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 #8

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 #10

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

__________________

anakin_cstrike is offline
Reply



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:46.


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