Raised This Month: $ Target: $400
 0% 

Show Money


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Groven
AlliedModders Donor
Join Date: Apr 2011
Location: Sweden
Old 05-05-2011 , 17:09   Show Money
Reply With Quote #1

Hello,

I tried to do this so the money on CashMod shows in the right corner to.


PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <cashmod>

#define PLUGIN "Cash Money"
#define VERSION "1.0"
#define AUTHOR "Ettan"

#define SURVIVE_MONEY 80
#define USER_MONEY 40

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event"DeathMsg""Event_DeathMsg""a" );
}

public 
Event_DeathMsg()
{
    new 
killer read_data(1);
    {
        
cs_set_user_money(killercs_get_user_money(killer)+SURVIVE_MONEY)
    }


Last edited by Groven; 05-05-2011 at 17:31.
Groven is offline
 


Thread Tools
Display Modes

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 04:23.


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