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

OciXCrom's Custom Shop + API


Post New Thread Reply   
 
Thread Tools Display Modes
DJEarthQuake
Senior Member
Join Date: Jan 2014
Location: Midwest
Old 10-06-2018 , 19:59   Re: OciXCrom's Custom Shop + API
Reply With Quote #201

Sic plugin. Change 'drugs' to 'boost' etc as that goes against the rules.
__________________
"It's not the actual programming that's interesting. But it's what you can accomplish with the end results that are important." -Dennis Ritchie
"Mathematics, rightly viewed, possesses not only truth, but supreme beauty a beauty cold and austere, like that of sculpture..." -Bertrand Russell
DJEarthQuake is offline
LithuanianJack
Senior Member
Join Date: Nov 2013
Location: Vilnius, Lithuania
Old 01-31-2019 , 09:28   Re: OciXCrom's Custom Shop + API
Reply With Quote #202

Hi, OciX. Thanks for plugin. How to make Golden AK47 buyable only for VIP members?
LithuanianJack is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Location: Muslim and proud!
Old 01-31-2019 , 10:54   Re: OciXCrom's Custom Shop + API
Reply With Quote #203

Quote:
Originally Posted by LithuanianJack View Post
Hi, OciX. Thanks for plugin. How to make Golden AK47 buyable only for VIP members?
Try avoiding dump questions by reading th3 1st post on how to do
Code:
CSHOP_VIP_FLAG -- VIP flag for the setting above.
DEFAULT: b
__________________
@Jailbreak MOD [Alot of features + API] 100% done !
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-31-2019 , 14:50   Re: OciXCrom's Custom Shop + API
Reply With Quote #204

Quote:
Originally Posted by Natsheh View Post
Try avoiding dump questions by reading th3 1st post on how to do
Code:
CSHOP_VIP_FLAG -- VIP flag for the setting above.
DEFAULT: b
Also try avoiding completely wrong answers to those questions.

You can either use the cshop_edit command to assign a flag or do it via the CustomShopItems.ini file.
__________________

Last edited by OciXCrom; 01-31-2019 at 14:53.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
LithuanianJack
Senior Member
Join Date: Nov 2013
Location: Vilnius, Lithuania
Old 02-01-2019 , 11:24   Re: OciXCrom's Custom Shop + API
Reply With Quote #205

I'm using this plugin in CSDM mod and I want when player spawns, he would lose all abilities (for example unlimited clip), but the limit for player persists till map end (using with CSHOP_SAVE_LIMIT = 1 value). What I have to change in the code?

Now, if I use CSHOP_SAVE_LIMIT = 1, after death (respawn) I still have unlimited clip and limit 1/5
If I use CSHOP_SAVE_LIMIT = 0, after death (respawn) I don't have unlimited clip and limit 0/5
I want: CSHOP_SAVE_LIMIT = 1, after death (respawn) I would lose unlimited clip and limit would be 1/5


EDIT: fixed.

Last edited by LithuanianJack; 04-01-2019 at 10:39.
LithuanianJack is offline
game.pwd
Junior Member
Join Date: Mar 2019
Old 03-26-2019 , 04:38   Re: OciXCrom's Custom Shop + API
Reply With Quote #206

OciXCrom can you tell me please how do i change the place of items in shop menu ?
game.pwd is offline
LithuanianJack
Senior Member
Join Date: Nov 2013
Location: Vilnius, Lithuania
Old 04-01-2019 , 10:42   Re: OciXCrom's Custom Shop + API
Reply With Quote #207

When I change something in CustomShopItems.ini, after server crash everything changes back in default values. I want to change prices, set items flags but it doesn't make sense because these changes are temporary. Need plugin improvement.
LithuanianJack is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-01-2019 , 14:12   Re: OciXCrom's Custom Shop + API
Reply With Quote #208

Of course changes will be lost after the server crashes. Instead of blaming the plugin, you should check and fix your server. The file is written when the map ends, so I don't think there's anything else I can do to prevent such a thing.
__________________

Last edited by OciXCrom; 04-01-2019 at 14:13.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 04-02-2019 , 16:20   Re: OciXCrom's Custom Shop + API
Reply With Quote #209

I do not know if it works, but it would be worth a test all of a sudden ...

Code:
register_forward(FM_Sys_Error, "server_down")
	register_forward(FM_GameShutdown, "server_down")
	register_forward(FM_ServerDeactivate, "server_down")

public server_down()
{
	loadItems(0)
	loadItems(1)
	
	new eItem[Items]
	
	for(new i; i < g_iTotalItems; i++)
	{
		ArrayGetArray(g_aItems, i, eItem)
		ArrayDestroy(eItem[aSettings])
		TrieDestroy(eItem[tSettings])
		TrieDestroy(eItem[tTypes])
	}
	
	ArrayDestroy(g_aItems)
	TrieDestroy(g_tItemIds)
	
	if(g_eSettings[CSHOP_POINTS_ENABLE] && g_eSettings[CSHOP_POINTS_SAVE])
		nvault_close(g_iVault)
		
	DestroyForward(g_fwdSelectItem)
	DestroyForward(g_fwdRemoveItem)
	DestroyForward(g_fwdMenuOpened)
	DestroyForward(g_fwdSetPrice)
}
__________________
iceeedr is offline
Send a message via Skype™ to iceeedr
csfweed
New Member
Join Date: Jan 2019
Old 04-20-2019 , 02:36   Re: OciXCrom's Custom Shop + API
Reply With Quote #210

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


Thread Tools
Display Modes

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 03:01.


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