Health help
Hello!
Code:
case 6: |
Re: Health help
You have to store in some variable how many time (per map, or per round, as you want/need) the same player has bought this item.
Or you may want to set the price according to player health. The more the player has health when he try to by some HP, the more the item is expensive. |
Re: Health help
How to do that? :) Im a beginner on this!
|
Re: Health help
Make a global array of 33 cells, add to it, multiply price by it and then reset it when you want (on new round for example).
Example: Code:
new g_iBoughtHP[33]Code:
case 6: |
Re: Health help
Thank you!
But in the menu can I do so the price displays? Code:
menu_additem(menu, "Buy Health", "6", 0); |
Re: Health help
I also regognized that the first one to 125 hp is free and then it costs 1000 money and so on.
|
Re: Health help
PHP Code:
PHP Code:
|
Re: Health help
Quote:
PHP Code:
|
Re: Health help
prole
PHP Code:
|
| All times are GMT -4. The time now is 04:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.