(i accidently double posted)
Forum
CS2D Scripts custom upgrade pricecustom upgrade price
7 replies 1
(i accidently double posted)
@DC that was the first thing that i tried but it did not work so i tried to make a script like that of katemire's
1
2
3
4
5
2
3
4
5
addhook("objectupgrade","repair") function repair(id,p,progress,total) 	setmoney(p,player(p,"money")+100) 	return 0 end
edited 2×, last 22.06.12 12:42:00 am
You should also put a check for money before and return 1 if they don't have enough.
but here is 1 more question still for the newbie:
1
2
2
addhook("hit","upgrade_attempt") function upgrade_attempt(id,[<-can this be somehow edited with the id of an object? or is this limited to player id's only?]
1