Raised This Month: $ Target: $400
 0% 

get_user_money


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Groven
AlliedModders Donor
Join Date: Apr 2011
Location: Sweden
Old 04-30-2011 , 20:30   get_user_money
Reply With Quote #1

Hello,

I'm using cashmod on my server and. I was wondering if anyone can make the money appear where they are real money on Counter-Strike in the right corner.

And it will update real time like when i'm stepping on a cashblock it will be like

+$60

and it updates same with kill.

Thanks!
Attached Files
File Type: sma Get Plugin or Get Source (cashmod_v007.sma - 629 views - 40.6 KB)

Last edited by Groven; 04-30-2011 at 21:09.
Groven is offline
matsi
Thinkosaur
Join Date: Sep 2006
Old 04-30-2011 , 21:56   Re: get_user_money
Reply With Quote #2

Hook Money message and update hud there. Also you would have to update after you got money from the 'cashblock'.

If you don't know how, search.
matsi is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 04-30-2011 , 22:01   Re: get_user_money
Reply With Quote #3

Maybe this can help you:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

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

#define ADMIN_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);
    
    if (
is_user_admin(killer))
    {
        
cs_set_user_money(killercs_get_user_money(killer)+ADMIN_MONEY)
    }
    else 
cs_set_user_money(killercs_get_user_money(killer)+USER_MONEY)

__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
Groven
AlliedModders Donor
Join Date: Apr 2011
Location: Sweden
Old 05-01-2011 , 08:22   Re: get_user_money
Reply With Quote #4

Thakns man!

Gonna try

Edit: It wont work.

Last edited by Groven; 05-01-2011 at 08:35.
Groven is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 05-01-2011 , 10:35   Re: get_user_money
Reply With Quote #5

Why don't you post this in cashmod's thread ?
__________________
Hunter-Digital 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 04:24.


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