ItsMods

Full Version: cash or money or bounty code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
ok so i got the money to work but i need it to take away money when u use the menu and u gain money when u kill some oneUndecidedUndecidedUndecided
here are the codes i have
PHP Code:
        level waittill"connected"player );
        
player.bounty 0
PHP Code:
        player thread Cash(); 
PHP Code:
        self thread Cash();
        
self thread MonitorBounty(); 
PHP Code:
MonitorBounty()
{
    
self endon("death");
    
    for(;;)
    {
        
self waittill("player_killed");
        
self.bounty += 50;
        
wait .1;
    }

PHP Code:
Cash()
{
     
self.money_text destroy();
     
self.money_num destroy();
     
//Money text
     
self.money_text newClientHudElem(self);
     
self.money_text.alignX "left";
     
self.money_text.alignY "bottom";
     
self.money_text.horzAlign "left";
     
self.money_text.vertAlign "bottom";
     
self.money_text.alpha 1;
     
self.money_text.5;
     
self.money_text.= -100;
     
self.money_text.fontscale 1.4;
     
self.money_text.color = (0,0.6,0);
     
self.money_text setText("$ ");
     
//Money number
     
self.money_num newClientHudElem(self);
     
self.money_num.alignX "left";
     
self.money_num.alignY "bottom";
     
self.money_num.horzAlign "left";
     
self.money_num.vertAlign "bottom";
     
self.money_num.13;
     
self.money_num.= -100;
     
self.money_num.alpha 1;
     
self.money_num.fontscale 1.4;
     
self.money_num.color = (0,0.6,0);
     
self.money_num setValue(self.bounty);

and when u kill some one it doesnt add the money and idk how to make it so that when u get money u can buy something and if u dont have money it says u dont have enough money or something
Pages: 1 2