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

OciXCrom's Custom Shop + API


Post New Thread Reply   
 
Thread Tools Display Modes
artefuckt
Junior Member
Join Date: Mar 2017
Old 03-12-2017 , 16:51   Re: OciXCrom's Custom Shop 3.6 + API
Reply With Quote #121

Quote:
Originally Posted by OciXCrom View Post
You messed something up. Did you edit the cshop_settings.inc file before/after the update? There is no "zp_set_user_points" code in custom_shop.sma, so you changed something.
I don't eddited anything, but this error keep going..
HTML Code:
L 03/12/2017 - 22:47:11: [AMXX] Plugin "custom_shop.amxx" failed to load: Plugin uses an unknown function (name "zp_set_user_points") - check your modules.ini.
L 03/12/2017 - 22:47:12: Called dynanative into a paused plugin.
L 03/12/2017 - 22:47:12: [AMXX] Displaying debug trace (plugin "cshop_items.amxx")
L 03/12/2017 - 22:47:12: [AMXX] Run time error 10: native error (native "cshopRegisterItem")
L 03/12/2017 - 22:47:12: [AMXX] [0] cshop_items.sma::plugin_precache (line 176)
A few days ago worked, but now....I have addon zombie plague special
artefuckt is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-12-2017 , 17:21   Re: OciXCrom's Custom Shop 3.6 + API
Reply With Quote #122

You did, either in the main plugin or one of the .inc files. The error is showing something that's not in the uploaded archive, so it's only on your side. Re-download the entire archive and try again. Also, check if you arranged the plugins properly. No sub-plugin should be put above custom_shop.amxx in plugins.ini. it's best to keep all of them in plugins-cshop.ini.
__________________

Last edited by OciXCrom; 03-12-2017 at 17:22.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
artefuckt
Junior Member
Join Date: Mar 2017
Old 03-15-2017 , 04:28   Re: OciXCrom's Custom Shop 3.6 + API
Reply With Quote #123

I added again, but i still get this error. I don't know why...
Maybe should be a bug?
artefuckt is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-15-2017 , 14:05   Re: OciXCrom's Custom Shop 3.6 + API
Reply With Quote #124

I don't know what you did, but it's not something that I can fix. Post your plugins list.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Striker2008
Junior Member
Join Date: Aug 2008
Old 03-19-2017 , 18:23   Re: OciXCrom's Custom Shop 3.6 + API
Reply With Quote #125

Suggestion: add an item "Steel Helmet" - that blocks headshots.

Last edited by Striker2008; 03-19-2017 at 18:24.
Striker2008 is offline
ish12321
Veteran Member
Join Date: May 2016
Old 03-19-2017 , 22:02   Re: OciXCrom's Custom Shop 3.6 + API
Reply With Quote #126

Bro, instead of answering again same questions why not add a FAQ at the description of your plugin and then avoid the reply of questions which're answered there
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here
ish12321 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-20-2017 , 08:39   Re: OciXCrom's Custom Shop 3.6 + API
Reply With Quote #127

Quote:
Originally Posted by Striker2008 View Post
Suggestion: add an item "Steel Helmet" - that blocks headshots.
PHP Code:
#include <amxmodx>
#include <customshop>
#include <fakemeta>
#include <hamsandwich>

#define PLUGIN_VERSION "3.x"

additem ITEM_HELMET
new bool:g_bHasItem[33

public 
plugin_init()
{
    
register_plugin("CSHOP: Steel Helmet"PLUGIN_VERSION"OciXCrom")
    
RegisterHam(Ham_TakeDamage"player""OnPlayerDamagePre"0)
}

public 
plugin_precache()
    
ITEM_HELMET cshop_register_item("steelhelm""Steel Helmet"7500)
    
public 
cshop_item_selected(idiItem)
{
    if(
iItem == ITEM_HELMET)
        
g_bHasItem[id] = true
}

public 
cshop_item_removed(idiItem)
{
    if(
iItem == ITEM_HELMET)
        
g_bHasItem[id] = false
}

public 
client_putinserver(id)
    
g_bHasItem[id] = false

public OnPlayerDamagePre(iVictimiInflictoriAttackerFloat:flDamageiDamageBits)
{
    if(!
is_user_connected(iAttacker) || !is_user_connected(iVictim) || iAttacker == iVictim || !g_bHasItem[iVictim])
        return 
HAM_IGNORED
        
    
return (get_pdata_int(iVictim755) == HIT_HEAD) ? HAM_SUPERCEDE HAM_IGNORED

I'll make a more advanced version with model, sounds and helmet health when I update the plugin to version 4.0.

Quote:
Originally Posted by ish12321 View Post
Bro, instead of answering again same questions why not add a FAQ at the description of your plugin and then avoid the reply of questions which're answered there
Which questions for example? I believe that I have explained 99% of the stuff in the first post. People need to learn to read before asking questions that have been answered, which is rarely the case.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-25-2017 , 10:42   Re: OciXCrom's Custom Shop 3.6 + API
Reply With Quote #128

Update v4.0 @ 25.03.2017
  • The update includes changes to all files except cshop_settings.inc. CustomShop.ini has changes only in the setting CSHOP_PREFIX and a new setting is added - CSHOP_SAVE_LIMIT.
  • You can now change every item settings through the cshop_edit command or the item configuration file, thanks to the new natives for registering item settings.
  • Added the command cshop_reset_points which will reset everyone's points.
  • Added an option to make the item limit save until the end of the map.
  • You can now add more than one access flag for the items.
  • Added new natives.
  • The plugin for the items is completely rewritten with the new API.
  • Minor fixes and optimization.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Visinescu
Senior Member
Join Date: Dec 2015
Location: England now,Home Romania
Old 03-27-2017 , 12:17   Re: OciXCrom's Custom Shop 3.6 + API
Reply With Quote #129

Quote:
Originally Posted by OciXCrom View Post
Update v4.0 @ 25.03.2017
  • The update includes changes to all files except cshop_settings.inc. CustomShop.ini has changes only in the setting CSHOP_PREFIX and a new setting is added - CSHOP_SAVE_LIMIT.
  • You can now change every item settings through the cshop_edit command or the item configuration file, thanks to the new natives for registering item settings.
  • Added the command cshop_reset_points which will reset everyone's points.
  • Added an option to make the item limit save until the end of the map.
  • You can now add more than one access flag for the items.
  • Added new natives.
  • The plugin for the items is completely rewritten with the new API.
  • Minor fixes and optimization.
Fix the ZIP file
Visinescu is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-28-2017 , 13:08   Re: OciXCrom's Custom Shop v4.0 + API
Reply With Quote #130

It opens just fine for me. I reuploaded it. Check now.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 13:17.


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