Raised This Month: $ Target: $400
 0% 

[Req] Slash Money


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mirk
Senior Member
Join Date: Nov 2012
Old 11-17-2013 , 11:51   [Req] Slash Money
Reply With Quote #1

I would need a simple plugin which give player $ 50 when he slashes the enemy. Please hamsandwich through
Mirk is offline
Albanian Zombie
Senior Member
Join Date: May 2013
Location: void
Old 11-17-2013 , 12:24   Re: [Req] Slash Money
Reply With Quote #2

Slash? You mean Kill?
Albanian Zombie is offline
Mirk
Senior Member
Join Date: Nov 2012
Old 11-17-2013 , 12:28   Re: [Req] Slash Money
Reply With Quote #3

No, I thought hit.
Mirk is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 11-18-2013 , 13:42   Re: [Req] Slash Money
Reply With Quote #4

Only slash?
__________________
alan_el_more is offline
Mirk
Senior Member
Join Date: Nov 2012
Old 11-18-2013 , 15:39   Re: [Req] Slash Money
Reply With Quote #5

Yes, only slash.
Mirk is offline
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 11-19-2013 , 03:59   Re: [Req] Slash Money
Reply With Quote #6

Quote:
Originally Posted by Mirk View Post
Please hamsandwich through
Strange .. why do you want it through Ham and no other ?
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then
devilicioux is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 11-19-2013 , 08:14   Re: [Req] Slash Money
Reply With Quote #7

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>

public plugin_init() 
{
    
register_plugin("Money On Slash""0.0.1""Author")
    
    
RegisterHam(Ham_TakeDamage"player""ham_TakeDamage_Pre")
}

public 
ham_TakeDamage_Pre(iVictimiInflictoriAttackerFloat:fDamagedamage_bits)
{
    if(
is_user_alive(iAttacker) && iInflictor == iAttacker && get_user_weapon(iAttacker) == CSW_KNIFE && fDamage 61 && fDamage != 48)
    {
        
cs_set_user_money(iAttackercs_get_user_money(iAttacker) + 501)
    }
    
    return 
HAM_IGNORED;

__________________
Jhob94 is offline
Mirk
Senior Member
Join Date: Nov 2012
Old 11-19-2013 , 09:59   Re: [Req] Slash Money
Reply With Quote #8

Thank you man but you could do even that does not add money when I cut the player from team and when it is turned on Friendly Fire, please?
Mirk 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 11:47.


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