Forum

> > CS2D > Scripts > Maximum Stats
Forums overviewCS2D overview Scripts overviewLog in to reply

English Maximum Stats

2 replies
To the start Previous 1 Next To the start

old Maximum Stats

TrialAndError
User Off Offline

Quote
Hello, I wonder if anyone can help me with this.

So I am trying to make "Stats". Everytime you kill someone you get a point and you can spend that point to upgrade your health.

But I made so you could only give max 30 Points to Health.

When it reaches 30 health you can't give more. And I am stuck there. Because when I give to health, it goes over 30 and just continues.

old Re: Maximum Stats

ohaz
User Off Offline

Quote
1
2
3
4
5
6
if player(id, "maxhealth") < 130 {
	[increase max health]
}
else {
	[error]
}

Edit: should've been < 130, instead of <= 130, fixed that
edited 1×, last 27.07.14 11:31:15 am
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview