Raised This Month: $100 Target: $400
 25% 

Emergency Defuse Kit


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   Xanimos (85)
Locks
Senior Member
Join Date: Sep 2005
Old 05-08-2006 , 03:08   Emergency Defuse Kit
Reply With Quote #1

I noticed many people often forget to buy a defuse kit on bomb/defuse maps, this plugin could be a life saver which only benifits the CT's. They could simply buy a defuse kit without being in the buyzone, but there's a higher price to that, it would cost more than the defuse kit that you would normally buy at the buyzone. So lets say that the bomb has been planted, then spotted the c4, but the T's are gaurding it, by the time you have or your team have eliminated all the T's there might be like around 10 seconds left, that would be the time to use the Emergency Defuse Kit simply by purchasing a defuse kit by saying one of the following commands in the game:
Code:
buy_defusekit
buydefusekit
buy_kit
/defusekit
or by console commands:
Code:
buy_defusekit
buydefusekit
buy_kit
defusekit
I suggest binding one of your keys to one of those commands, but if you're going to use the "saying commands", this is how you would normally bind those commands:
(In Console) type:
bind "key" "say buy_defusekit"

You could modify the cost for the emergency defuse kit by either placing this cvar into your server.cfg or amxx.cfg:
Code:
amx_kit_cost <COST AMOUNT>
(Keep it above 200, just to keep the game balanced.)

This plugin is works for CT's ONLY.

Version:
1.1 - Updated to use Pcvar values.
Attached Files
File Type: sma Get Plugin or Get Source (amx_defusekit.sma - 1627 views - 1.9 KB)

Last edited by Locks; 09-28-2006 at 21:24.
Locks is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 05-08-2006 , 03:13  
Reply With Quote #2

You should use this instead of that global crap.
Quote:
cs_get_user_defuse - Returns 1 if a user has a defuse kit, 0 otherwise.
Syntax:
cs_get_user_defuse ( index )
so they don't pay for something they already bought. Other than that I like the idea.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
uTg | bigpapajiggs
Senior Member
Join Date: Sep 2005
Location: Bellingham, WA
Old 05-08-2006 , 03:55  
Reply With Quote #3

Maybe add the normal command to buy it? Like I have my KP_INS key bound to "defuser" so I just press that to buy it in spawn. Adding the default "defuser" command would make people with buy scripts happier (as they wouldn't need to bind another key).

Good idea as well.
__________________
What's my confidence level? I do crossword puzzles with a pen.
uTg | bigpapajiggs is offline
Send a message via AIM to uTg | bigpapajiggs Send a message via MSN to uTg | bigpapajiggs Send a message via Yahoo to uTg | bigpapajiggs
Locks
Senior Member
Join Date: Sep 2005
Old 05-08-2006 , 05:29  
Reply With Quote #4

@Suicid3: Alright, I updated it, seems like a better way to check if the user has something that they already have.

@uTg|Jigga: Yeah, but if I do something like that, wouldn't it make it impossible to defuse? because it's still forcing the user to buy a defuse kit it they press the defuse key.
Locks is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 05-08-2006 , 07:43  
Reply With Quote #5

Hint: use cs_set_user_defuse instead of give_item and then only cstrike will be required.
VEN is offline
Locks
Senior Member
Join Date: Sep 2005
Old 05-08-2006 , 19:13  
Reply With Quote #6

Thanks VEN, i never thought of using that, but of course, I updated.
Locks is offline
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 05-08-2006 , 19:56  
Reply With Quote #7

great plugin idea awesome job
SubStream 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 12:11.


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