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:
|
Re: Shop Menu Tutorial For CS 1.6
Hello friends, also I have this shop and liked to include some things and one of them is AK47 Golden, somebody can explain me as makes stops for the code?
AK: (https://forums.alliedmods.net/showthread.php?p=827532) |
Re: Shop Menu Tutorial For CS 1.6
Edit shop menu and add item ak47. Then in menu handler, make in golden ak case:
PHP Code:
PHP Code:
|
Re: Shop Menu Tutorial For CS 1.6
no golden AK please in servers
|
Re: Shop Menu Tutorial For CS 1.6
Can anyone tell me where to add this code please tell me please?
|
Re: Shop Menu Tutorial For CS 1.6
it was for a specific request, a shop thingy. the OP seems to already know pawn scripting, so it's useless for other persons. read previous posts to understand.
|
Re: Shop Menu Tutorial For CS 1.6
Hi Jhob94 !
you are very funny. I saw your photo :) |
Re: Shop Menu Tutorial For CS 1.6
is it scripting?
I don't understand from the previous page. I want to know that where to add this and what type of file to save it in? :) |
Re: Shop Menu Tutorial For CS 1.6
put the code in a texte file and change the extension to .sma >> compile to get the .amxx file.
|
Re: Shop Menu Tutorial For CS 1.6
I compiles it but i dont get a .amxx file? how to get that?
|
Re: Shop Menu Tutorial For CS 1.6
Quote:
Quote:
|
Re: Shop Menu Tutorial For CS 1.6
Oh Thank you friend.
I found the way and finally get the amxx file. Thank you so much. |
Shop Menu Tutorial For CS 1.6
|
Re: Shop Menu Tutorial For CS 1.6
*face palm*
Trying to release a plugin that you didn't write... |
Re: Shop Menu Tutorial For CS 1.6
it so easy
you can download the ak plugin than put to it an command like normal to buy it : /goldenak than go to your menu add the text than go to the cases and add this case case X : client_cmd(id, "say /goldenak"); X : your case number soo easy :wink: |
All times are GMT -4. The time now is 23:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.