money shop
I've tried to do it by myself and it worked but the only problem i got was that the money didnt took from player when he bought something, i wanted to solve by myself but i had to reinstall my windows and i forgot to save it and now its gone, and since it gave me headache trying to fix it, maybe its simplier for you, i just need a simple shop with money
cmd /shop 1. Grenades (he, flash) - 400$ 2. Gravity (a higher gravity like 700,650)(for 30 seconds) - 600$ 3. Speed (a bit faster, for 100 seconds as well) - 400$ 4. TMP (ct only) - 300$ 5. Immorality (godmode, 20 seconds) - 800$ 6. Health: 150HP - 500$ 7. Armor+Helmet - 200$ 8. Invisibility (not 100%)(30 seconds) - 700$ 9. Respawn, 700$ 10. Random Item (here i'd like if possible to give something random like noclip (for few seconds), godmode (for few seconds), double jump, and fun stuff, and VIP (flag t, for 24 hours, with 1% chance :P) - 6500$ thanks :) |
Re: money shop
This will do the trick - https://forums.alliedmods.net/showthread.php?t=284603
You can quickly and easily add new items in the shop if you already know how to script. |
Re: money shop
Plugin is finished, should be tested. Waiting for feedback.
Spoiler
|
Re: money shop
Quote:
Code:
#include <amxmodx> |
Re: money shop
I updated my code, it should be working now. Finished it all while i was at it. Keep me uptodate and notify me if bugs occure.
|
Re: money shop
PHP Code:
1. when speed is finished, player can't move anymore! 2. when i dont have enough cash, it still gives me the items! 3. at Big Surpirse, hopefully OciXCrom can help because i saw Roll the Dice (rtd) and maybe it can be added here, i dont want to add /rtd to server, for all the players, only when someone buys form shop Big Surprise, to get random such as in rtd plugin! if it work and its not that hard to make, if not then leave it so until i got some new ideas! thanks amigo! :) |
Re: money shop
1) Should be fixed.
2) That's weird, i tested it and it worked fine with me. |
Re: money shop
Updated my code again, removed is_user_connected() checks in the reset functions since i already remove tasks in client_disconnect(). Also if u modify the plugin, please leave the "if(is_user_alive(id))" check in the shophandler since the player needs to be alive to receive an item. If u don't do this, items will be given to a dead player which is not possible, and money will get decreased of the player buying from the shop.
|
Re: money shop
Here's a rather simplified format I made a while ago that you can take advantage of.
Pay attention to how I defined the list that holds the items. PHP Code:
|
Re: money shop
Looks good, thanks for sharing, will defenitely use this in the future.
|
All times are GMT -4. The time now is 05:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.