Raised This Month: $ Target: $400
 0% 

Bomb Plant/Defuse Assist


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 09-08-2013 , 04:28   Bomb Plant/Defuse Assist
Reply With Quote #1

Bomb Plant/Defuse Assist


Description
This plugin adds new feature when player plants or defuse the bomb nearest that team players are assistants who receive a rewards.

Cvars
Plant_Assist_AliveReq // How much need alive CT's to award players for planting assist (default: 3)
Defuse_Assist_AliveReq // How much need alive T's to award players for defusing assist (default: 3)

Plant_Assist_Distance // Furthest distance for assist while planting the bomb (default: 500)
Defuse_Assist_Distance // Furthest distance for assist while defusing the bomb (default: 500)

Plant_Assist_Award // Plant assistants award. 1 - Frags; 2 - Money (default: 2)
Defuse_Assist_Award // Defuse assistants award. 1 - Frags; 2 - Money (default: 2)

Plant_Assist_Reward // Plant assistants reward amount (default: 400)
Defuse_Assist_Reward // Defuse assistants reward amount (default: 400)

Credits
OneEyed - for admin check plugin players list.
Phant - for some new ideas.

Note. When changing plant/defuse rewards, take a look at reward amount to avoid from getting eg. 400 frags, or 1$ for assist.
Attached Files
File Type: sma Get Plugin or Get Source (Bomb_PD_Assist.sma - 1161 views - 5.1 KB)

Last edited by ~Ice*shOt; 09-09-2013 at 08:24. Reason: Updated
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
bat
Veteran Member
Join Date: Jul 2012
Old 09-08-2013 , 04:39   Re: Bomb Plant/Defuse Assist
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?t=49641
__________________
bat is offline
Send a message via Skype™ to bat
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 09-08-2013 , 04:52   Re: Bomb Plant/Defuse Assist
Reply With Quote #3

^
That plugin is unapproved plugin
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 09-08-2013 , 04:59   Re: Bomb Plant/Defuse Assist
Reply With Quote #4

Quote:
Originally Posted by bat View Post
Quote:
Description
This plugin adds new feature when player plants or defuse the bomb nearest that team players are assistants who receive a rewards.
Quote:
* DESCRIPTION:

- This Plugin will give rewards in money to people who:
* Are planting the bomb & if bomb explodes successfully , the planter will receive another bonus ;
* Are defusing the bomb .
see the difference?
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 09-08-2013 , 05:14   Re: Bomb Plant/Defuse Assist
Reply With Quote #5

What about enemies? Assistants got award even if no live enemies?
For example, all CT's dead, or 1 CT vs 5 T's situation and assistants of planting still got awards. It's easy. I think need to check this situations.
Phant is offline
Send a message via ICQ to Phant
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 09-08-2013 , 05:19   Re: Bomb Plant/Defuse Assist
Reply With Quote #6

Add:
No maximum money check. Player can have > 16000$. Like that:
PHP Code:
#define MAX_MONEY 16000

new user_money cs_get_user_money(id)
    
user_money += rfm_money
    
if(user_money >= MAX_MONEY) {
        
cs_set_user_money(idMAX_MONEY)
    } else {
        
cs_set_user_money(iduser_money)
    } 

Last edited by Phant; 09-08-2013 at 05:21.
Phant is offline
Send a message via ICQ to Phant
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 09-08-2013 , 05:22   Re: Bomb Plant/Defuse Assist
Reply With Quote #7

OK I'll update, now fixing bug with message printing.
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
red_bull2oo6
Senior Member
Join Date: Mar 2012
Location: Braila, Romania
Old 09-08-2013 , 06:42   Re: Bomb Plant/Defuse Assist
Reply With Quote #8

thanks, i`m gonna use it on my server but with credits instead of money.
can i modify it ?
__________________

My PC Themes . .

Last edited by red_bull2oo6; 09-08-2013 at 06:55. Reason: nvm
red_bull2oo6 is offline
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 09-08-2013 , 09:04   Re: Bomb Plant/Defuse Assist
Reply With Quote #9

Sure, but now it's a little bit buggy, when I find time I'll fix it.

Last edited by ~Ice*shOt; 09-08-2013 at 09:05.
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
bibu
Veteran Member
Join Date: Sep 2010
Old 09-09-2013 , 05:00   Re: Bomb Plant/Defuse Assist
Reply With Quote #10

PHP Code:
PrintColor(0"need more alive cts for planting assists rewards, so fuck you loosers."
Seriously?
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu 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 08:22.


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