AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Sth about the money color. (https://forums.alliedmods.net/showthread.php?t=133819)

GarbageBox 07-29-2010 01:57

Sth about the money color.
 
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.

ConnorMcLeod 07-29-2010 01:58

Re: Sth about the money color.
 
Register the money message and always set last param (trackchange) to 0.

GarbageBox 07-29-2010 02:13

Re: Sth about the money color.
 
Can you write the code for me?
I am an amxx novice...

ConnorMcLeod 07-29-2010 11:11

Re: Sth about the money color.
 
1 Attachment(s)
Okay

GarbageBox 07-29-2010 12:10

Re: Sth about the money color.
 
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.

GXLZPGX 07-29-2010 12:27

Re: Sth about the money color.
 
Quote:

Originally Posted by GarbageBox (Post 1255187)
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

GarbageBox 07-29-2010 12:35

Re: Sth about the money color.
 
I know what you are saying, but I dont know how to write the code...

ConnorMcLeod 07-29-2010 13:30

Re: Sth about the money color.
 
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.

GarbageBox 07-30-2010 00:15

Re: Sth about the money color.
 
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!


All times are GMT -4. The time now is 00:16.

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