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

Extra Money Defuser v0.3


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   ConnorMcLeod (74)
JoKeR LauGh
Veteran Member
Join Date: May 2011
Location: Malaysia
Old 12-14-2011 , 11:46   Extra Money Defuser v0.3
Reply With Quote #1

Extra Money for Defuser!
Version 0.3

Description
This plugin can make the defuser to have a reward when they have defused the bomb , why shouldn't you get extra money for saving people life?

Money amount
  • cvar_amount

Command during in-game(console command)
amx_toggle "<1|0>" // 1-Enable, 0-Disable
amx_amount "<x>" // x represent amount of money received by the defuser

To moderator or anybody else
  • Please tell me if the plugin is already exist and moderator can trash this. ( Also , remove the source code )

Credits
Devil259
Napoleon_be
Korxu

Changelog

** Version 0.1
- Initial release

** Version 0.2
- Fixed cvar ( my stupid fault )

** Version 0.3
- Seperated cvar text to the defuser and to all ( configurable by cvar )
Attached Files
File Type: sma Get Plugin or Get Source (Extra_Money_Defuser.sma - 1030 views - 1.5 KB)
__________________
Quote:
Originally Posted by addons_zz View Post
Also, just to not read `the article`, read all you find. Read and read, for ever and ever. Never stop reading.
Why? Because there is not one single universal truth which holds the meaning for everything.

Last edited by JoKeR LauGh; 01-03-2017 at 11:00.
JoKeR LauGh is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-14-2011 , 13:01   Re: Extra Money for Defuser!
Reply With Quote #2

csx module is not needed.

Code:
cvar_enable = register_cvar("1 - Enable , 0 - Otherwise", "1") cvar_money = register_cvar("Amount of money that defuser got", "400")

Is it a joke ?!

Basic plugin, not useful.
__________________
You can do anything you set your mind to, man.

Devil259 is offline
Old 12-14-2011, 13:04
JoKeR LauGh
This message has been deleted by JoKeR LauGh.
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-14-2011 , 13:05   Re: Extra Money for Defuser!
Reply With Quote #3

cvar_enable = register_cvar("1 - Enable , 0 - Otherwise", "1")
cvar_money = register_cvar("Amount of money that defuser got", "400")

->

cvar_enable = register_cvar("amx_money_defuser", "1")
cvar_money = register_cvar("amx_money_defuser_value", "400")


Remove : #include <csx>
__________________
You can do anything you set your mind to, man.

Devil259 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 12-14-2011 , 13:06   Re: Extra Money for Defuser!
Reply With Quote #4

PHP Code:
cvar_enable register_cvar("amx_toggle""1")
cvar_money register_cvar("amx_ammount""400) 
That will look more like it.
The thing that you did, will make the player need to type: "amx_cvar 1 - Enable, 0 - Otherwise" "0" to disable the plugin. That would be bullshit. Did you even test the plugin before you released it?
__________________


My Plugins:
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
JoKeR LauGh
Veteran Member
Join Date: May 2011
Location: Malaysia
Old 12-14-2011 , 13:10   Re: Extra Money for Defuser!
Reply With Quote #5

2 nice people that tries to help my first useless plugin . Thanx!

I thought it can be put anything just like description , yes my fault.

Version 0.2!
__________________
Quote:
Originally Posted by addons_zz View Post
Also, just to not read `the article`, read all you find. Read and read, for ever and ever. Never stop reading.
Why? Because there is not one single universal truth which holds the meaning for everything.

Last edited by JoKeR LauGh; 12-14-2011 at 13:21.
JoKeR LauGh is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-14-2011 , 13:21   Re: Extra Money for Defuser! V 0.2
Reply With Quote #6

The forward is in amxmodx include, am I right ?

You can add a print_chat which inform the defuser of the bomb.
__________________
You can do anything you set your mind to, man.

Devil259 is offline
Korxu
Senior Member
Join Date: Sep 2010
Old 12-14-2011 , 13:22   Re: Extra Money for Defuser! V 0.2
Reply With Quote #7

You could add a plugin mode to give money only to the defuser or also to the alive CTs ( and both options ).
Korxu is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 12-14-2011 , 13:31   Re: Extra Money for Defuser! V 0.2
Reply With Quote #8

Good.
__________________
kramesa is offline
Old 12-14-2011, 13:32
JoKeR LauGh
This message has been deleted by JoKeR LauGh.
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 12-14-2011 , 14:03   Re: Extra Money for Defuser! V 0.2
Reply With Quote #9

Like devil said, you can add this into your code:
PHP Code:
new szName[33]; get_user_name(defuserszNamecharsmax(szName))
client_print(defuserprint_chat"[DEFUSE] %s Has just earned %i because he defused the bomb!"szNameget_pcvar_num(cvar_money)) 
__________________


My Plugins:
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Old 12-14-2011, 14:05
JoKeR LauGh
This message has been deleted by JoKeR LauGh.
Korxu
Senior Member
Join Date: Sep 2010
Old 12-14-2011 , 14:25   Re: Extra Money for Defuser! V 0.2
Reply With Quote #10

Do a cvar instead of create two separated plugins.
Korxu 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 00:07.


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