Raised This Month: $51 Target: $400
 12% 

Market System API


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 03-03-2022 , 00:33   Market System API
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (marketSystem.sma - 181 views - 5.0 KB)
File Type: sma Get Plugin or Get Source (market_example.sma - 172 views - 1.4 KB)
File Type: inc market.inc (407 Bytes, 77 views)
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 03-03-2022 at 00:36.
EFFx is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 03-03-2022 , 04:09   Re: Market System API
Reply With Quote #2

SiC! Glad to see this done.
__________________
DJEarthQuake is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 03-05-2022 , 21:55   Re: Market System API
Reply With Quote #3

This version is actually a simple one. Just posting some of my works before I retire ^-^.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 03-06-2022 , 07:44   Re: Market System API
Reply With Quote #4

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

Last edited by DruGzOG; 03-06-2022 at 07:45.
DruGzOG is offline
Send a message via AIM to DruGzOG
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 03-06-2022 , 13:44   Re: Market System API
Reply With Quote #5

I thought that too, guess I was wrong to choose this instead.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-07-2022 , 03:10   Re: Market System API
Reply With Quote #6

Quote:
Originally Posted by DruGzOG View Post
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.
__________________
HamletEagle is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:00.


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