Raised This Month: $ Target: $400
 0% 

Hook Money Hud


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 12-30-2014 , 09:37   Hook Money Hud
Reply With Quote #1

Is it possible to hook my Packs system to the money on the hud?
Instead of appearing the money it appears the number of Packs the player has.
Syturi0 is offline
Old 12-30-2014, 09:54
tousif
This message has been deleted by tousif.
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-30-2014 , 10:01   Re: Hook Money Hud
Reply With Quote #3

If I understood well you want to hide the money hud and show another one instead ? If so, you can but you will also hide the radar and the hud with hp & ap.
__________________
HamletEagle is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 12-30-2014 , 10:09   Re: Hook Money Hud
Reply With Quote #4

Quote:
Originally Posted by HamletEagle View Post
If I understood well you want to hide the money hud and show another one instead ? If so, you can but you will also hide the radar and the hud with hp & ap.
No.
I want to replace the Money Value with a diffrent Value, for example Packs/Point System.

Lets say player1 has 16000$ and 302 Packs, i want it to show like this: 302$ instead of the default money value.
Syturi0 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-30-2014 , 10:16   Re: Hook Money Hud
Reply With Quote #5

PHP Code:
#include <amxmodx> 

public plugin_init() 
{
    
register_message(get_user_msgid("Money"), "OnMessageMoney")


public 
OnMessageMoney(msgiddestid

    
set_msg_arg_int(1ARG_LONGyour_packs_here)

__________________

Last edited by HamletEagle; 12-30-2014 at 10:25.
HamletEagle is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 01-07-2015 , 21:54   Re: Hook Money Hud
Reply With Quote #6

Quote:
Originally Posted by HamletEagle View Post
PHP Code:
#include <amxmodx> 

public plugin_init() 
{
    
register_message(get_user_msgid("Money"), "OnMessageMoney")


public 
OnMessageMoney(msgiddestid

    
set_msg_arg_int(1ARG_LONGyour_packs_here)

How do i refresh the number when changed?
Syturi0 is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 12-30-2014 , 13:26   Re: Hook Money Hud
Reply With Quote #7

cs_set_user_money?
.Dare Devil. is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 12-30-2014 , 14:06   Re: Hook Money Hud
Reply With Quote #8

Quote:
Originally Posted by .Dare Devil. View Post
cs_set_user_money?
NO
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-30-2014 , 14:09   Re: Hook Money Hud
Reply With Quote #9

Quote:
Originally Posted by .Dare Devil. View Post
cs_set_user_money?
He asked how to hook the message...
__________________
HamletEagle is offline
Reply


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 15:20.


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