ItsMods

Full Version: point system
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i need help making a point system.... i can put something like this
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.x = 5;
    self.money_text.y = -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.x = 55;
    self.money_num.y = -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);
}

it will show the $ but it wont show the numbers

if i put
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.x = 5;
    self.money_text.y = -100;
    self.money_text.fontscale = 1.4;
    self.money_text.color = (0,0.6,0);
    self.money_text setText("$ "+self.bounty);
}

it wont show the whole text

plz help Sad
self.bounty is the problem, what is self.bounty is it defined?
(10-21-2011, 00:45)4FunPlayin Wrote: [ -> ]self.bounty is the problem, what is self.bounty is it defined?

your self.defined

Troll
Open callback damage gsc find player killed write eAttacker.bounty += 50; also write player.bounty = 0; in onplayerconnect

You don't need the functions above.