Results 1 to 6 of 6
  1. #1
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,109
    My Mood
    Angelic

    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.addpoints = (self.pers["kills"] - self.killscheck);
    		self.credits += self.addpoints * 150;
    		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.

    Buy Action:
    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;
    	}
    }
    Thanks for all that read and may have an answer

  2. #2
    JackSTR's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    England, London
    Posts
    144
    Reputation
    10
    Thanks
    13
    My Mood
    Flirty
    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?


    Add me on MsN
    Noisecontrollers@live.co.uk
    I don't bite

  3. #3
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,109
    My Mood
    Angelic
    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. #4
    iGhost's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    56
    Reputation
    12
    Thanks
    36
    I don't understand what you are trying to say, can you please be more specific on what you are trying to do?
    Because I do think I an help you solve your issue.
    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. #5
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,109
    My Mood
    Angelic
    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. #6
    iGhost's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    56
    Reputation
    12
    Thanks
    36
    https://www.mpgh.net/forum/308-call-d...ing-lobby.html

    Download, and look at that mod, pay attention closely to both the menu and _rank.gsc
    You should be ble to figure it out, unless you are serious noob, no offense.
    Last edited by iGhost; 02-05-2011 at 11:47 AM.