Raised This Month: $32 Target: $400
 8% 

Hit Rewards


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Statistical        Approver:   EKS (166)
MistaGee
Senior Member
Join Date: Aug 2004
Location: Germany (Fulda)
Old 08-03-2005 , 10:23   Hit Rewards
Reply With Quote #1

This plugin rewards people for hitting their enemies by giving them a certain amount of money, but if they hit ppl in their own team, the same amount of money will be taken away.

It is able to send HUD messages to the attacker and the victim. A wide variety of cvars allows you to configure the script and a dictionary in English and German languages is included.


CVars:
Code:
amx_hrwd_head          <-- Reward given for a head shot
amx_hrwd_chest         <-- reward for chest
amx_hrwd_stomach       <-- guess what? :p
amx_hrwd_arm_l
amx_hrwd_arm_r
amx_hrwd_leg_l
amx_hrwd_leg_r
amx_hrwd_enable        <-- enables / disables the script
amx_hrwd_dmgfactor     <-- takes damage into account when > 0.0 -- reward will be multiplied this factor and the given damage (use carefully, makes reward grow very fast - 0.05 is maximum I recommend...)
amx_hrwd_maxreward     <-- maximum reward given
amx_hrwd_msg_k         <-- send HUDmsg to killer <0|1>
amx_hrwd_msg_v         <-- send HUDmsg to victim <0|1>
amx_hrwd_msg_onlyonrwd <-- send hud msg only if reward > 0
the HUD msg displays the given damage, if this was a TA, who hit whom, where the victim was hit and how much the killler was rewarded. the victim will see the weapon used as well.

Idea, Coding & Testing by MistaGee with a li'l help from http://forums.alliedmods.net/showthr...=135415#140128

UPDATE
I notived that the plugin made ppl become rich in no time, so I decided to add two cvars:
amx_hrwd_mindistance <0|n>
amx_hrwd_tamaxdistance <-1|0|n>
These define which distance between attacker and victim is needed for normal kills to be counted. If set to 0, no distance is needed, if set to n, distance must be greater than n for the hit to be rewarded.
With ta, this is the other way round: Hitting a team member occurs more easily if the player is far away, so I decided to build in a tamaxdistance cvar. If this is set to 0, distance is not nregarded at all; if set to n, distance must be smaller than n; if set to -1, the script uses the value from mindistance cvar.

Plz download the dictionary as well cuz I changed it too (removed some obsolete information and typos), so there willl be a tag mismatch if you continue using the old one...
Attached Files
File Type: txt hitreward.txt (839 Bytes, 3252 views)
File Type: sma Get Plugin or Get Source (hitreward.sma - 5279 views - 7.0 KB)
__________________
Ich hab nie behauptet dass ich kein Genie bin!
Mumble-Django: A web interface for Mumble
MistaGee is offline
Send a message via ICQ to MistaGee
[]D [] []v[] []D
Member
Join Date: Jul 2005
Old 08-03-2005 , 16:08  
Reply With Quote #2

awsome job installing it right now
[]D [] []v[] []D is offline
Send a message via ICQ to []D [] []v[] []D
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-04-2005 , 03:17  
Reply With Quote #3

What are the setting set to in teh plugin version? howmuch money that is?
I want this plugin, i was just wondering what they were so i maybe did not have to change anything, unless i needed too
__________________
bmann_420 is offline
MistaGee
Senior Member
Join Date: Aug 2004
Location: Germany (Fulda)
Old 08-04-2005 , 10:10  
Reply With Quote #4

you mean those:
Code:
amx_hrwd_head          <-- Reward given for a head shot
amx_hrwd_chest         <-- reward for chest
amx_hrwd_stomach       <-- guess what? :p
amx_hrwd_arm_l
amx_hrwd_arm_r
amx_hrwd_leg_l
amx_hrwd_leg_r
?

these set the basic reward for the hits, but if you want to take damage into account the reward the player actually gets will differ from that... change them to what you think appropriate, you'll have to play around a little...
__________________
Ich hab nie behauptet dass ich kein Genie bin!
Mumble-Django: A web interface for Mumble
MistaGee is offline
Send a message via ICQ to MistaGee
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-04-2005 , 15:28  
Reply With Quote #5

Yea i meant those, thankx

O and
Quote:
these set the basic reward for the hits, but if you want to take damage into account the reward the player actually gets will differ from that...
What do u mean by that? if i wanted to do the left leg at 50 bucks, id change teh left laeg cvar to 50? and that would be 50 bucks? Im not understanding what you mean by "the player actaully gets will deffer from that".

Im gonna just try ur version (teh .amxx) and see how it goes
__________________
bmann_420 is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-04-2005 , 16:56  
Reply With Quote #6

Is there any way u can take out the send to server print? It just spams my server with
Distance between blan and blan too small :: 1311 of 1500

all the time, i cant even read what people ar saying.
__________________
bmann_420 is offline
MistaGee
Senior Member
Join Date: Aug 2004
Location: Germany (Fulda)
Old 08-05-2005 , 09:14  
Reply With Quote #7

first, set amx_hrwd_dmgfactor to 0.0 and forget about the damage thingy

second, 'm sorry I forgot that distance message when uploading the sma... just comment or delete all "server_print" lines in the sma and recompile. I needed this to find a good distance default value.

Greetz MGee
__________________
Ich hab nie behauptet dass ich kein Genie bin!
Mumble-Django: A web interface for Mumble
MistaGee is offline
Send a message via ICQ to MistaGee
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-05-2005 , 17:32  
Reply With Quote #8

sweet thankx, nice plugin by the way. Noobs need money if they dont kill, but shoot people u know

And i only found 1 server_print, easy enough
__________________
bmann_420 is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-06-2005 , 17:23  
Reply With Quote #9

Code:
L 08/07/2005 - 13:29:34: [AMXX] Native error in "get_user_attacker" on line 47 (file "hitreward.sma").
Im gettin that, dunno
__________________
bmann_420 is offline
MistaGee
Senior Member
Join Date: Aug 2004
Location: Germany (Fulda)
Old 08-07-2005 , 09:39  
Reply With Quote #10

erm... never seen that occur b4, woreks fine with me

try to compile yourself, maybe that helps, or add a function to tell you which vID is currently processed when the error occurs... sry i can't do more but on my machine everything's fine...
__________________
Ich hab nie behauptet dass ich kein Genie bin!
Mumble-Django: A web interface for Mumble
MistaGee is offline
Send a message via ICQ to MistaGee
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 06:35.


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