Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
Oil Rig Beta Access |
ah, ok. i missed the price-variable there. However, you still need to change that sethintstring and dont mess with the other lines.
Besides that you need to look for the PaP funtion ( stock-scripts it's in zombiemode_perks but for Harry i wouldn't know ), and the when the player pap's a weapon check it that weapon is allready upgraded or not. If it is the price is 10000, and if it's not the price is 5000.
If you want the hintstring to say either "Upgrade weapon. Cost [5000]." when a player holds a normal weapon, or "Double Upgrade weapon. Cost [10000]." when a player hold an upgraded weapon it's not impossible but it's going to require quite a lot of code for just a hintstring.
You could simply do "Upgrade weapon: Cost [5000]. Double Upgrade: Cost [10000]." and then asjust the cost by checking if the weapon is allready upgraded or not like i mentioned above.
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
looks good but didnt see anything that checks if player has enough points to buy, put this after the added part
should look like