This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

OciXCrom's Custom Shop + API


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MihailoZ
Member
Join Date: Aug 2013
Old 06-30-2016 , 14:43   Re: OciXCrom's Custom Shop 3.3 + API
Reply With Quote #1

This is the best shop plugin I've ever seen. I've god one question...Can I display something like "Shop Info" like, how many points do you have and so?
MihailoZ is offline
Mohammad Hlwani
Member
Join Date: May 2016
Old 06-30-2016 , 15:03   Re: OciXCrom's Custom Shop 3.3 + API
Reply With Quote #2

Quote:
Originally Posted by Napoleon_be View Post
What do you mean the game didn't enter?

when i choose the map and click on start it didnt enter
Mohammad Hlwani is offline
ish12321
Veteran Member
Join Date: May 2016
Old 12-14-2016 , 06:38   Re: OciXCrom's Custom Shop 3.4 + API
Reply With Quote #3

Hello isn't registering cVars then using exec the cfg file not better than the complete readSettings ?

Also can there be added few small things like : cs_get_user_points(id) & cs_set_user_points(id) ?
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here

Last edited by ish12321; 12-14-2016 at 06:40.
ish12321 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-14-2016 , 13:48   Re: OciXCrom's Custom Shop 3.4 + API
Reply With Quote #4

Update 3.5 @ 14.12.2016
  • The update includes changes only for the following files: custom_shop.sma, customshop.inc, CustomShop.txt.
  • Added cshop_get_points(id) native for getting the amount of points the user has.
  • Changed the natives' names, since the current ones were ugly (cshopRegisterItem => cshop_register_item). The old ones are still active though, so sub-plugins woulnd't break.
  • Fixed the bug where the last item wouldn't save its changes made by the admins.
  • Fixed the bug where item changes wouldn't save/load at all.
  • Added Spanish and Hungarian translation.
  • Minor code changes.

Quote:
Originally Posted by ish12321 View Post
Hello isn't registering cVars then using exec the cfg file not better than the complete readSettings ?
I don't think getting cvar values every time you open the shop menu is a good idea, especially if the cvars control the item names. I find it better to save these things in a file and load them only once.

Quote:
Originally Posted by ish12321 View Post
Also can there be added few small things like : cs_get_user_points(id) & cs_set_user_points(id) ?
There is cshopGivePoints(id, amount) for giving/taking points, but somehow I managed to forget a native for checking how many points the player has. I added cshop_get_points(id) just now - update to the latest version (3.5). I also changed cshopGivePoints to cshop_give_points, because the old one was really ugly.

Quote:
Originally Posted by Craxor View Post
Oxi , it is the same, put you can avoid calling str_to_num() so do it
I know, but I coulnd't release a new version just for that. Fixed now.
__________________

Last edited by OciXCrom; 12-14-2016 at 13:51.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
GUSIi
Junior Member
Join Date: May 2017
Old 05-15-2017 , 13:22   Re: OciXCrom's Custom Shop + API
Reply With Quote #5

I have a problem with cshop_reset_points
When i run it in my console says: Unknow command.
Is there a way to edit user points from a log file?
GUSIi is offline
GUSIi
Junior Member
Join Date: May 2017
Old 05-21-2017 , 09:11   Re: OciXCrom's Custom Shop + API
Reply With Quote #6

what about reset command?
GUSIi is offline
sazbebs
New Member
Join Date: Oct 2017
Old 10-16-2017 , 12:49   Re: OciXCrom's Custom Shop + API
Reply With Quote #7

where this plugin Custom Shop + API?
sazbebs is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 10-16-2017 , 13:38   Re: OciXCrom's Custom Shop + API
Reply With Quote #8

Quote:
Originally Posted by sazbebs View Post
where this plugin Custom Shop + API?
omg... it`s litteraly at the bottom of the main post https://github.com/OciXCrom/CustomSh...ive/master.zip
__________________
retired chump
DjSoftero is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 10-06-2018 , 19:59   Re: OciXCrom's Custom Shop + API
Reply With Quote #9

Sic plugin. Change 'drugs' to 'boost' etc as that goes against the rules.
__________________
DJEarthQuake is offline
csfweed
Junior Member
Join Date: Jan 2019
Location: Romania.
Old 04-20-2019 , 02:36   Re: OciXCrom's Custom Shop + API
Reply With Quote #10

Can you make a /donate command?
For donate points to other players.
And
cshop_points @ALL 5000
Exactly , put @all , to give points to all players on.
Not cshop_points y 5000 / cshop_points x 5000
Thanks.
csfweed 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 16:08.


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