Raised This Month: $95 Target: $400
 23% 

Knife Drop


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Hawk552 (427)
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 09-17-2009 , 03:03   Knife Drop
Reply With Quote #1

Description:

This plugin is very simple i think but well... i didn't see a plugin with this characteristics.

You can drop weapons, good... but when you try to drop the knife... what happen? oh yes: "This weapon cannot be dropped". Well, with this plugin you can say "f*ck you" to that message and drop the knife. You have 2 types of knife drop, but btw, see the cvars below.

Requirements:
Code:
#include <cstrike> #include <fakemeta> #include <hamsandwich>
Commands:
  • say /knife: Show a menu asking you, if you want to buy a knife, with the price too.
Cvars:
  • kd_type (Default: 2)
    • 0: Players can't drop the knife.
    • 1: Players can drop the knife but the knife disappear.
    • 2: Players can drop the knife to the floor (ofcourse players can take a knife dropped).
  • kd_onlyadmins (Default: 0)
    • 0: All players can drop the knife.
    • 1: Only Players/Admins with ADMIN_KICK flag can drop the knife (you can change the flag in the 4th define)
    • If this cvar is enabled and you are not an admin, you will recive a msg when you try to drop the knife (telling you that only admins can do this action).
  • kd_showmsg (Default: 1)
    • 0: Don't show a center message in the screen of the player when he drop the knife.
    • 1: Show a center message in the screen of the player when he drop the knife.
  • kd_msg_cantdrop (Default: 1)
    • 0: When you can't drop the knife you will not recive any msg (kd_type value have to be in 0).
    • 1: When you can't drop the knife you will recive the normal msg "This weapon cannot be dropped".
  • kd_menu_enable (Default: 1) *NEW
    • 0: "Knife Buy Menu" disabled.
    • 1: "Knife Buy Menu" enabled.
  • kd_menu_cost (Default: 800) *NEW
    • Cost of the knife, ofcourse kd_menu_enable cvar must be in 1.
  • kd_usage (Default: 1) *NEW
    • 0: Don't remove the knife when a player kill an enemy with a knife.
    • 1: Remove the knife If a player kill (with knife) "X" number (controled by another cvar) of enemies.
  • kd_kills (Default: 2) *NEW
    • How much kills (with knife) can be made after remove the knife from the player. This cvar in 0/1 is the same. Also kd_usage have to be actived.
  • kd_showmenu (Default: 1) *NEW
    • 0: Don't show any menu if the knife was removed.
    • 1: Show the "Knife Buy Menu" when the knife is removed. Ofcourse kd_usage & kd_menu_enable cvars must be enabled.
Images:

http://img11.**************/img11/9242/knifedropped.png
http://img11.**************/img11/1862/knifedropped2.png
http://img19.**************/img19/6297/handsk.png *NEW

Extra Notes:

In the top of the plugin you can change some things...
Code:
// --------------------START EDIT------------------------ //

#define MODEL_ON

#define is_user_admin2(%1)  (get_user_flags(%1) & ADMIN_KICK)

#if defined MODEL_ON
new const V_HAND_MODEL[]    = "models/v_hands.mdl"
#endif

// --------------------END EDIT------------------------- //
a) Comment the MODEL_ON define if you don't want to use the hand model.

b) You can change ADMIN_KICK flag to another flag that you want.

c)
Here you can change the model (Ofcourse if MODEL_ON is uncommented).

Credits:
Changelog:
  • Version 1.0
    • First Release.
  • Version 1.1
    • Added new cvars with more features.
    • Added new command to acces to the menu.
    • Added menu to buy knife if you don't have one.
    • Added new feature that when you kill "X" number of players the knife dissapear, also the "Knife Buy Menu" show up.
    • Added cstrike module.
    • Other minor changes.
  • Version 1.2
    • Minor optimization suggested by fezh (click me).
    • Added a hand model when you don't have any weapon.
    • Added Extra Notes to the thread, to change some things in the plugin.
    • Added Image of the hand model.
    • Added Sylwester to the credits.
P.S: Sry if i writed something wrong... correct me if i did it... My english isn't perfect.
Attached Files
File Type: sma Get Plugin or Get Source (knife_drop.sma - 10482 views - 6.9 KB)
File Type: zip hands.zip (234.6 KB, 7114 views)
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...

Last edited by Alucard^; 10-03-2009 at 03:58.
Alucard^ is offline
Send a message via Skype™ to Alucard^
GmTx
BANNED
Join Date: May 2009
Location: Mountains [BG/Sofia]
Old 09-17-2009 , 03:22   Re: Knife Drop
Reply With Quote #2

Good job man
GmTx is offline
Send a message via Skype™ to GmTx
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 09-17-2009 , 03:50   Re: Knife Drop
Reply With Quote #3

Quote:
Originally Posted by GmTx View Post
Good job man
Thx.

- Added 2 images in the first post.
- Fixed variable name.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 09-17-2009 , 05:34   Re: Knife Drop
Reply With Quote #4

ok for first i tough its anything like this "Pistol And Amno" i tough when you drop your knife, on new round, you get a new knife ) but as i read the description....

GJ dude. its raaly silly when you cant drop your knife its now nicer.
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 09-17-2009 , 05:47   Re: Knife Drop
Reply With Quote #5

I suggest making the knife take damage.

Ex: You kill two players, the kinife damage becomes lower, you need to drop it and get the knife from other players.
If a player has died and had knife he will drop it.
And eventually a buy system.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 09-17-2009 , 06:22   Re: Knife Drop
Reply With Quote #6

Good suggestion OT, i will add this.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 09-17-2009 , 06:59   Re: Knife Drop
Reply With Quote #7

looks different, gj!
KadiR is offline
Jon
Veteran Member
Join Date: Dec 2007
Old 09-17-2009 , 13:34   Re: Knife Drop
Reply With Quote #8

Quote:
Originally Posted by Alucard^ View Post
Description:

This plugin es very simple i think but well... i didn't see a plugin with this characteristics.

You can drop weapons, good... but when you try to drop the knife... what happen? oh yes: "This weapon cannot be dropped". Well, with this plugin you can say "f*ck you" to that message and drop the knife. You have 2 types of knife drop, but btw, see the cvars below.
Fix
Jon is offline
Old 09-17-2009, 13:48
ConnorMcLeod
This message has been deleted by ConnorMcLeod. Reason: nvm
sooN
Veteran Member
Join Date: Apr 2009
Old 09-17-2009 , 15:45   Re: Knife Drop
Reply With Quote #9

why cut not on the floor? you can't make an small model ?
__________________
sooN is offline
Send a message via MSN to sooN
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 09-17-2009 , 16:08   Re: Knife Drop
Reply With Quote #10

Quote:
Originally Posted by sooN View Post
why cut not on the floor? you can't make an small model ?
cause its default cs knife model....
KadiR is offline
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 11:18.


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