Raised This Month: $ Target: $400
 0% 

No money lose


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 03-14-2014 , 10:29   No money lose
Reply With Quote #1

Need simplest way to don't lose money for hostages killing.
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
dmx2244
Junior Member
Join Date: May 2010
Old 03-14-2014 , 11:03   Re: No money lose
Reply With Quote #2

here try this
https://forums.alliedmods.net/showth...94220?p=494220
dmx2244 is offline
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 03-14-2014 , 11:45   Re: No money lose
Reply With Quote #3

I don't think that it's what I need, and it's for sm..
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
dmx2244
Junior Member
Join Date: May 2010
Old 03-14-2014 , 12:38   Re: No money lose
Reply With Quote #4

here sorry for first post

https://forums.alliedmods.net/showth...=hostage+money

Last edited by dmx2244; 03-14-2014 at 12:39.
dmx2244 is offline
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 03-14-2014 , 13:04   Re: No money lose
Reply With Quote #5

I tried this, but I don't like that +800 every time I shot hostage, any ideas?

Last edited by ~Ice*shOt; 03-14-2014 at 13:04.
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
Baws
Veteran Member
Join Date: Oct 2012
Old 03-15-2014 , 12:18   Re: No money lose
Reply With Quote #6

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

#define PLUGIN "Host Loose Money" 
#define AUTHOR "ConnorMcLeod" 
#define VERSION "0.0.1" 

#define IsPlayer(%1)    (1 <= %1 <= g_iMaxPlayers) 

new g_iMaxPlayers 

new pcvariMoney

public plugin_init() 

    
register_plugin(PLUGINVERSIONAUTHOR

    
RegisterHam(Ham_TakeDamage"hostage_entity" "Hostage_TakeDamage"
    
RegisterHam(Ham_TakeDamage"monster_scientist" "Hostage_TakeDamage"
    
RegisterHam(Ham_TakeDamage"hostage_entity" "Hostage_TakeDamage_Post"1
    
RegisterHam(Ham_TakeDamage"monster_scientist" "Hostage_TakeDamage_Post"1
    
    
pcvariMoney register_cvar"amx_winnomoney""0" )

    
g_iMaxPlayers get_maxplayers() 


public 
Hostage_TakeDamage(iHostageiInflictoriAttackerFloat:flDamagebitsDamageType

    if( 
flDamage && IsPlayer(iAttacker) ) 
    { 
        
cs_get_user_money(iAttacker
    } 


public 
Hostage_TakeDamage_Post(iHostageiInflictoriAttackerFloat:flDamagebitsDamageType

    if( 
flDamage && IsPlayer(iAttacker) ) 
    { 
        
cs_set_user_money(iAttackerget_pcvar_numpcvariMoney )) 
    } 

__________________
Like my clean plugins and work?
Baws 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 05:56.


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