AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hook Money Hud (https://forums.alliedmods.net/showthread.php?t=254116)

Syturi0 12-30-2014 09:37

Hook Money Hud
 
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.

HamletEagle 12-30-2014 10:01

Re: Hook Money Hud
 
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.

Syturi0 12-30-2014 10:09

Re: Hook Money Hud
 
Quote:

Originally Posted by HamletEagle (Post 2242143)
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.

HamletEagle 12-30-2014 10:16

Re: Hook Money Hud
 
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)



.Dare Devil. 12-30-2014 13:26

Re: Hook Money Hud
 
cs_set_user_money?

bibu 12-30-2014 14:06

Re: Hook Money Hud
 
Quote:

Originally Posted by .Dare Devil. (Post 2242257)
cs_set_user_money?

NO

HamletEagle 12-30-2014 14:09

Re: Hook Money Hud
 
Quote:

Originally Posted by .Dare Devil. (Post 2242257)
cs_set_user_money?

He asked how to hook the message...

Syturi0 01-07-2015 21:54

Re: Hook Money Hud
 
Quote:

Originally Posted by HamletEagle (Post 2242160)
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?


All times are GMT -4. The time now is 15:20.

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