AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [Req] Slash Money (https://forums.alliedmods.net/showthread.php?t=229956)

Mirk 11-17-2013 11:51

[Req] Slash Money
 
I would need a simple plugin which give player $ 50 when he slashes the enemy. Please hamsandwich through

Albanian Zombie 11-17-2013 12:24

Re: [Req] Slash Money
 
Slash? You mean Kill?

Mirk 11-17-2013 12:28

Re: [Req] Slash Money
 
No, I thought hit.

alan_el_more 11-18-2013 13:42

Re: [Req] Slash Money
 
Only slash?

Mirk 11-18-2013 15:39

Re: [Req] Slash Money
 
Yes, only slash.

devilicioux 11-19-2013 03:59

Re: [Req] Slash Money
 
Quote:

Originally Posted by Mirk (Post 2062010)
Please hamsandwich through

Strange .. why do you want it through Ham and no other ? :?:

Jhob94 11-19-2013 08:14

Re: [Req] Slash Money
 
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;



Mirk 11-19-2013 09:59

Re: [Req] Slash Money
 
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?


All times are GMT -4. The time now is 00:47.

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