Raised This Month: $ Target: $400
 0% 

Sth about the money color.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GarbageBox
Senior Member
Join Date: Feb 2010
Old 07-29-2010 , 01:57   Sth about the money color.
Reply With Quote #1

One day, when I was playing CS.
I entered an internet server, after the time when i buy a gun.
I saw the money color was always by default yellow, even when I buy sth.
Have anyone got some ideas from this, please help for me.
Thank for who are helped me.
GarbageBox is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-29-2010 , 01:58   Re: Sth about the money color.
Reply With Quote #2

Register the money message and always set last param (trackchange) to 0.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
GarbageBox
Senior Member
Join Date: Feb 2010
Old 07-29-2010 , 02:13   Re: Sth about the money color.
Reply With Quote #3

Can you write the code for me?
I am an amxx novice...
GarbageBox is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-29-2010 , 11:11   Re: Sth about the money color.
Reply With Quote #4

Okay
Attached Files
File Type: sma Get Plugin or Get Source (Money_No_Track.sma - 337 views - 1.1 KB)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
GarbageBox
Senior Member
Join Date: Feb 2010
Old 07-29-2010 , 12:10   Re: Sth about the money color.
Reply With Quote #5

I think you had get wrong meaning.
When buy a gun your money will turn to red color, this is CS default setting and I want the money always show by default color.Do not need change for bug etc.
But I like this plugins feature.When I tested it, I have got some problems.
Sth about the reward amxx, the plugin will showed like normal how much money you received.
GarbageBox is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 07-29-2010 , 12:27   Re: Sth about the money color.
Reply With Quote #6

Quote:
Originally Posted by GarbageBox View Post
I think you had get wrong meaning.
When buy a gun your money will turn to red color, this is CS default setting and I want the money always show by default color.Do not need change for bug etc.
But I like this plugins feature.When I tested it, I have got some problems.
Sth about the reward amxx, the plugin will showed like normal how much money you received.
Your money doesn't change color, it displays a hud like message above it.

Lets say.. you have 16000$, and an M4A1 costs 2000$.

-2000$ <-- The hud message (Red)
14000$ <-- Your cash after you bought it

and if you gain money, it will do shit like..

+200$ <-- The hud message (Green)
14200$ <-- Your cash after you gained the money
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
GarbageBox
Senior Member
Join Date: Feb 2010
Old 07-29-2010 , 12:35   Re: Sth about the money color.
Reply With Quote #7

I know what you are saying, but I dont know how to write the code...
GarbageBox is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-29-2010 , 13:30   Re: Sth about the money color.
Reply With Quote #8

The plugin make money color to always be default color (yellow/brown).

For amxx plugins, you have to edit all .sma and search for cs_set_user_money and set last param (3rd one) to 0, or add it if only 2 args are passed in the native.
Then recompile the plugin.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
GarbageBox
Senior Member
Join Date: Feb 2010
Old 07-30-2010 , 00:15   Re: Sth about the money color.
Reply With Quote #9

https://forums.alliedmods.net/showthread.php?t=80629
I am using this amxx.
I search for the cs_set_user_money, and it's not about bonus $$.
Just if a player money > XXXX change his money to XXXX.
What should I do next...
Thank you!
__________________
You can be a SUPER coder but you Haven't to say such as "stupid, etc." words to the others
GarbageBox 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 00:16.


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