Raised This Month: $ Target: $400
 0% 

Damage Money


Post New Thread Reply   
 
Thread Tools Display Modes
fanta2go
Junior Member
Join Date: Oct 2013
Old 10-22-2013 , 11:43   Re: Damage Money
Reply With Quote #11

If i make myself damage, i get the money too xD!

Nice plugin but that sucks xD!

Last edited by fanta2go; 10-22-2013 at 11:49.
fanta2go is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 10-22-2013 , 12:31   Re: Damage Money
Reply With Quote #12

Seeing as Fredd hasn't posted since 2009, here's an updated version... it should not award money on self inflicted damage/kills if CVar is set to 0

new CVar:
money_per_selfkill
0 = no
1 = yes

...:: TnT Edit ::...
Just saw Bacardi's code... added the admin feature into this one... sorry I missed it before.

Edit #2
See this post for updated binary
__________________
View my Plugins | Donate

Last edited by TnTSCS; 10-23-2013 at 16:23.
TnTSCS is offline
fanta2go
Junior Member
Join Date: Oct 2013
Old 10-23-2013 , 15:20   Re: Damage Money
Reply With Quote #13

thank you ! But...
if i kill myself with a grenade, i get too money .

And if i change it, that i get 1000$ for a kill, i get only 995 $ and not 1000$.

Is that normal ?

For a Headshot its the same, i use 500$ and i get only 495$.

Last edited by fanta2go; 10-23-2013 at 15:33.
fanta2go is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 10-23-2013 , 16:21   Re: Damage Money
Reply With Quote #14

The money difference is probably due to this line (86)
Code:
    new fMoney = (GetMoney(xAttacker) + GetConVarInt(MnPerKill) - 305); // why minus 305?

Probably need to set that to 300... or remove that entirely... I'm guessing the original author wanted to account for the money you received for normal kills without this plugin.

Fixed the money giving when you die by your own hand (I did that for the damage, but forgot about the death event).
Attached Files
File Type: sp Get Plugin or Get Source (Damage_Money.sp - 293 views - 3.3 KB)
__________________
View my Plugins | Donate

Last edited by TnTSCS; 10-23-2013 at 16:22.
TnTSCS is offline
fanta2go
Junior Member
Join Date: Oct 2013
Old 10-27-2013 , 05:46   Re: Damage Money
Reply With Quote #15

Thank you very much!

I have now only one question, if i want that only terrorists get money for kills and no counter terrorists, what i have to do o_o ?
fanta2go is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 10-27-2013 , 10:13   Re: Damage Money
Reply With Quote #16

Here... try this one... new CVar:
Code:
"money_per_team"
  -Only allow defined team to receive money
     0=Disabled
     2=Terrorist
     3=CT
Attached Files
File Type: sp Get Plugin or Get Source (Damage_Money.sp - 289 views - 3.7 KB)
__________________
View my Plugins | Donate

Last edited by TnTSCS; 10-27-2013 at 23:00.
TnTSCS is offline
fanta2go
Junior Member
Join Date: Oct 2013
Old 10-27-2013 , 11:04   Re: Damage Money
Reply With Quote #17

Thank you !

I wish you could help me with some scripts for my server cs:s ...


PS: your smx dont work and if i try to compile your sp i get 2 errors ->

/home/groups/sourcemod/upload_tmp/phpyhZdHw.sp(59) : error 017: undefined symbol "GetPlayerTeam"

/home/groups/sourcemod/upload_tmp/phpyhZdHw.sp(83) : error 017: undefined symbol "GetPlayerTeam"


And another question ...

can you add the cvar for money for killing a person with a knife and

a cvar for killing a person with a grenade?

Last edited by fanta2go; 10-27-2013 at 11:16.
fanta2go is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 10-27-2013 , 22:59   Re: Damage Money
Reply With Quote #18

bah - it's GetClientTeam... sorry... did that from a PC that's not mine.

Fixed in post above...
__________________
View my Plugins | Donate
TnTSCS is offline
fanta2go
Junior Member
Join Date: Oct 2013
Old 10-28-2013 , 14:06   Re: Damage Money
Reply With Quote #19

if i play as ct and kill a person or do damage, i get every 300$ xD...

And Is it possible to get this three options :S ?

CreateConVar money kill per knife 250
CreateConVar money kill per grenade 500
CreateConVar money kill per weapon 1000

Last edited by fanta2go; 10-28-2013 at 14:53.
fanta2go is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 10-28-2013 , 17:17   Re: Damage Money
Reply With Quote #20

Quote:
Originally Posted by fanta2go View Post
if i play as ct and kill a person or do damage, i get every 300$ xD...
Does that mean it's working as intended?

Quote:
And Is it possible to get this three options :S ?
Any other "requests" you have to change this plugin? Would you want that money in addition to the other amount for damage/kills or only that money defined in the three new variables?
__________________
View my Plugins | Donate

Last edited by TnTSCS; 10-28-2013 at 17:18.
TnTSCS 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 20:00.


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