1. ## Cash/Money Counter

I am looking for a money counter that works.
The one i have get bugged when you buy something.

I am looking for:

A Money Counter+The command for buy items.

Money:
Code:
```Money()
{
self endon("disconnect");

self.credits = 0;
self.killscheck = 0;
self.deathscheck = 0;
self.assistscheck = 0;

while(1){
if(self.pers["kills"] != self.killscheck){
self.killscheck = self.pers["kills"];}

if(self.pers["deaths"] != self.deathscheck){
self.removepoints = (self.pers["deaths"] - self.deathscheck);
self.credits -= self.removepoints * 50;
self.deathscheck = self.pers["deaths"];}

if(self.pers["assists"] != self.assistscheck){
self.assistpoints = (self.pers["assists"] - self.assistscheck);
self.credits += self.assistpoints * 50;
self.assistscheck = self.pers["assists"];}

if(self.credits > 5000)
self.credits = 5000;
if(self.credits < 0)
self.credits = 0;
wait 2;
}
}```
This is from the CSwarfare. By AZUMIKKEL.

Code:
`if(self.credits >= 300){self.credits -= 300; self giveWeapon("ump45_mp", 3, true);`
So i wonder, could any make this work better.

Problem is:

When you get like 300\$ and you buy the ump45.

And on death i get the money back that I paid for the ump45.

So the moeny you buy things for you you don't lose the money.

Just the counter show that you lose but on death. you lost nothing

Money Counter:
Code:
```Money Counter()
{
self endon ("disconnect");

CSLText4 = self createFontString( "objective", 1.5 );
CSLText4 setPoint( "TOPLEFT", "TOPLEFT", 4, 140 );

while(1) {
CSLText4 setText( "^2Cash: ^3   " +self.credits );
wait 0.1;
}
}```

2. YOU STOLE HIS CODE its probably glitches because it was made for cs warfare what have you done to change it in to a counter Money thing for your mod?

3. I didnt do anything.

I just looked throu some mods and found some intressting things.
I but them together and it became that. But then I saw the CSwarfare code. It was almost the same. mine didnt workg so good. because i did a mistake.

But I have to start some place to learn. and learn from others is a good thing you know

4. I don't understand what you are trying to say, can you please be more specific on what you are trying to do?
I just don't understand what you want?
Money to be displayed on screen?
Make it so you get your Money back when you die?
I am just so confused.

5. I am after a:

Money Counter. That counts your money. 1 kill - 100 Cash

And when I buy something I will lose the money.

Cuse that I use now. I get the money back after death. It don't count the buy lose.

I just want, money gain on kill. and lose that amuont off money that i used.

6. https://www.mpgh.net/forum/308-call-d...ing-lobby.html