Raised This Month: $ Target: $400
 0% 

Money as Health


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
amxinclude
Member
Join Date: Oct 2011
Old 10-27-2011 , 09:16   Re: Money as Health
Reply With Quote #4

Tested.
PHP Code:
#include <amxmodx> 
#include <amxmisc> 
#include <fun> 
#include <cstrike> 
#include <hamsandwich> 

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

public plugin_init() 

    
register_plugin(PLUGINVERSIONAUTHOR)   
    
    
// Ham TakeDamage 
    
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage"

public 
fw_TakeDamage(victiminflictorattackerFloat:damage

    if(
get_user_health(victim) >= 0)
    {
    new 
money cs_get_user_money(victim
        new 
damaget SetHamParamFloat(4damage  )  
    
cs_set_user_money(victim,money -= damaget
   
     
        }  
    } 
amxinclude is offline
 



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 14:27.


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