AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Market System API (https://forums.alliedmods.net/showthread.php?t=336608)

EFFx 03-03-2022 00:33

Market System API
 
3 Attachment(s)
Market System API


Release: 03/02/2022
Last Update: 03/02/2022

- Description
- With this plugin, you can register anything you want as an item to be purchased by others players. It supports everything you want to sell. It has also an option to delete the item if the owner press on the menu.

- API System

PHP Code:

// Used to register an item
native register_market_item(iSellerszItemName[], iItemPrice)
// used to get the item name by it's ID
native get_market_itemname(iItemIDszItemName[], iLen)

// the pre is used to add checks before the item get selected on the menu / show on the menu
forward client_market_purchase_pre(iBuyeriItemIDiSelleriPrice)
// the post is used when the user can buy the item.
forward client_market_purchase_post(iBuyeriItemIDiSelleriPrice

- Change log
Spoiler

DJEarthQuake 03-03-2022 04:09

Re: Market System API
 
SiC! Glad to see this done.

EFFx 03-05-2022 21:55

Re: Market System API
 
This version is actually a simple one. Just posting some of my works before I retire ^-^.

DruGzOG 03-06-2022 07:44

Re: Market System API
 
This would be better to fall under the code snippets/ tutorial since its more an API than a plugin release

EFFx 03-06-2022 13:44

Re: Market System API
 
I thought that too, guess I was wrong to choose this instead.

HamletEagle 03-07-2022 03:10

Re: Market System API
 
Quote:

Originally Posted by DruGzOG (Post 2773215)
This would be better to fall under the code snippets/ tutorial since its more an API than a plugin release

An API is a plugin.


All times are GMT -4. The time now is 06:20.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.