Money as Health
How I can get the health and put where the money is...
I made this method... Code:
But when I hurt or get more health the money is not updated. Thanks. |
Re: Money as Health
Money is not updated when you lose or gain health. You'll have to hook Ham_TakeDamage and update there (cs_set_user_money could be used to set health and update the message as well).
|
Re: Money as Health
Quote:
Code:
Code:
L 10/27/2011 - 10:09:14: Invalid message argument 1 |
Re: Money as Health
Tested.
PHP Code:
|
Re: Money as Health
Quote:
|
Re: Money as Health
PHP Code:
PHP Code:
|
Re: Money as Health
Quote:
|
Re: Money as Health
Code:
Assuming you're setting clients' money to their HP on spawn or whereever. |
Re: Money as Health
Check by yourself,isn't working...Howerever the money is not the trouble,the update is it...
Code:
|
Re: Money as Health
What do you want displayed in the regular health HUD? Does the money HUD get reduced by purchases and increased for kills etc like normal money?
|
| All times are GMT -4. The time now is 14:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.