Shop Menu Tutorial For CS 1.6
I need a shop menu tutorial for CS 1.6. I am not sure how to do a shop menu if someone can give me an easy tutorial to start with. And also I couldn't find anything I typed, Shop Menu Tutorial For CS 1.6 and much more and couldnt find it. Im sorry if i wasted your time. I am sure there is a tutorial but I can't find it.
Thank You |
Re: Shop Menu Tutorial For CS 1.6
Cash or Shop Credits?
|
Re: Shop Menu Tutorial For CS 1.6
Cash
|
Re: Shop Menu Tutorial For CS 1.6
just do a menu using the new menu system....
then put your shop items in there.... then in each item case... add this.... PHP Code:
PHP Code:
then just incorporate this into the menu .... to take away the amount of money the item costs... dont forget to add a check to see if they have enough money other wise you will get Negative money. |
Re: Shop Menu Tutorial For CS 1.6
Quote:
|
Re: Shop Menu Tutorial For CS 1.6
Quote:
EDIT: quick make of shop menu basic as per caked asked. PHP Code:
|
Re: Shop Menu Tutorial For CS 1.6
Quote:
|
Re: Shop Menu Tutorial For CS 1.6
Quote:
|
Re: Shop Menu Tutorial For CS 1.6
Maybe you want to check out the Shop API from Exolent, its fully documrnted and easy to understand, just search for it.
|
Re: Shop Menu Tutorial For CS 1.6
Quote:
Quote:
new money = cs_get_user_money(id) if( money > cost ) { Also, there is no point creating/destroying the menu each time when this menu is static. Same for key you retrieve from info, just use item instead. Little example with your 3 first items : Not that if you implement speed, you have to store wheter player has extra speed or not and to detect when his speed his changed by the game so you can set him again his extra speed. PHP Code:
|
All times are GMT -4. The time now is 20:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.