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

OciXCrom's Custom Shop + API


Post New Thread Reply   
 
Thread Tools Display Modes
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-04-2016 , 10:43   Re: OciXCrom's Custom Shop 3.4 + API
Reply With Quote #51

Try putting the shop above all custom plugins.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
ACM1PT
Member
Join Date: Feb 2014
Location: Argentina
Old 12-04-2016 , 10:47   Re: OciXCrom's Custom Shop 3.4 + API
Reply With Quote #52

Spanish.
Code:
[es]
CSHOP_NOTALLOWED_FLAG = No puedes usar la !gtienda!n.
CSHOP_NOTALLOWED_TEAM = Tu equipo no puede usar la !gtienda!n!
CSHOP_NOTALLOWED_DEAD = Los muertos no pueden usar la !gtienda!n!
CSHOP_NOITEMS = La !gtienda!n no tiene items disponibles en estos momentos!
CSHOP_NOT_TEAM = Éste ítem no está disponible para tu equipo!
CSHOP_NOT_FLAG = No tienes permiso para comprar éste ítem!
CSHOP_NOT_MONEY = No tienes suficiente !g%s !npara comprar éste ítem (!t%i!n/!g%i%s!n)
CSHOP_NOT_LIMIT = El límite de compra de éste ítem fue alcanzado (!t%i!n/!g%i!n)
CSHOP_NOT_DELAY = Éste ítem puede ser comprar después de !g%.1f segundos!n.
CSHOP_ITEM_BOUGHT = Compraste !g%s !npor !g%i%s
CSHOP_ITEM_EXPIRED = La duración de éste ítem terminó. Duración: !g%.1f segundos!n. Ítem: !t%s
CSHOP_KILL = Tienes !g%i %s !npor matar a !t%s
CSHOP_POINTS = Tienes !g%i %s
CSHOP_POINTS_DISABLED = El sistema de puntos está actualmente deshabilitado.
CSHOP_CMD_GIVE = ADMIN !t%s !ndió !g%i %s !npara !t%s
CSHOP_CMD_TAKE = ADMIN !t%s !ntomó !g%i %s !nde !t%s
CSHOP_ITEMS_LOADED = ----- Tienda personalizada: %i items cargados -----
CSHOP_NAME = Nombre
CSHOP_PRICE = Precio
CSHOP_LIMIT = Límite
CSHOP_SOUND = Sonido
CSHOP_DURATION = Duración
CSHOP_TIME = Tiempo
CSHOP_TEAM = Equipo
CSHOP_FLAG = Flag
CSHOP_PAGE = Página
CSHOP_ENABLED = activado
CSHOP_DISABLED = desactivado
CSHOP_EDITOR_TITLE = \yOciXCrom's \rCustom Shop \yEditor\d
CSHOP_EDITOR_CURRENT = \yÍtem actual: \r%s
CSHOP_EDITOR_STATUS = Estado
CSHOP_EDITOR_SOUND = El sonido sólo puede ser cambiado en el archivo !t.ini!n.
CSHOP_EDITOR_SET = El valor del ítem !g%s !nfue cambiado para !t%s!n.
CSHOP_EDITOR_TOGGLE = %s toggled item %s's status
CSHOP_EDITOR_SAVE = Guardar cambios.
CSHOP_EDITOR_SAVED = Todos los cambios se han guardado.
CSHOP_EDITOR_CANTSAVE = No hay nada que guardar.
Suggestion:
Add the CustomShop.ini translations to the lang file

Last edited by ACM1PT; 12-04-2016 at 11:23.
ACM1PT is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-04-2016 , 14:55   Re: OciXCrom's Custom Shop 3.4 + API
Reply With Quote #53

Thanks for the translation. That file is not modified by the plugin, so I can't use multilingual in it. Even if it was, it will be nearly impossible to make the settings obey the language.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
vAx
Junior Member
Join Date: Oct 2011
Location: Hungary
Old 12-04-2016 , 23:12   Re: OciXCrom's Custom Shop 3.4 + API
Reply With Quote #54

Quote:
Originally Posted by OciXCrom View Post
Try putting the shop above all custom plugins.
Not working. After server autorestart the points will be zero...
vAx is offline
Send a message via MSN to vAx
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 12-05-2016 , 07:50   Re: OciXCrom's Custom Shop 3.4 + API
Reply With Quote #55

I'm offtopic but i realy do not believe that if you put a plugin ABOVE of ALL is going to happen something magic or not, does'nt matter where you write the plugin in plugin.ini , it is important just to be there.
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-05-2016 , 08:33   Re: OciXCrom's Custom Shop 3.4 + API
Reply With Quote #56

Quote:
Originally Posted by Craxor View Post
I'm offtopic but i realy do not believe that if you put a plugin ABOVE of ALL is going to happen something magic or not, does'nt matter where you write the plugin in plugin.ini , it is important just to be there.
It does matter in a lot of cases. For example, if you have a plugin for admin prefixes and it returns PLUGIN_HANDLED in the end of the "say" hook, it will block every registered chat command from the plugins below it. Same goes for putting amx_gag plugin above adminchat.amxx - if you don't put it there, it won't block the "say @" commands, otherwise gag will forbid you from using admin chat commands as well.

@vAx - Are you using the latest version of the plugin (3.4)? Please post the content of your CustomShop.ini file, as well as check your server console/log files for errors.
Also, what do you mean by "server auto-restart"? Do they save after mapchange? If your server isn't changing map/shutting down properly, it can't save the points because it won't catch the moment when the player disconnects, which is when the points are saved.
__________________

Last edited by OciXCrom; 12-05-2016 at 08:36.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
vAx
Junior Member
Join Date: Oct 2011
Location: Hungary
Old 12-05-2016 , 12:30   Re: OciXCrom's Custom Shop 3.4 + API
Reply With Quote #57

I'm using OciXCrom's Custom Shop v3.4 + API
Server log contained only 2 errors: 1 about the register system config ( Unknown CVAR "rs_whitelsit" -> changed to rs_whitelist) and the parachute doesn't had the dictionary file, the .txt file is now at the right dir.

CustomShop.ini:
Code:
;Prefix for chat messages.
CSHOP_PREFIX = !n[!tAK26 Pontozo Rendszer!n]

;Menu title. You can use %team%, %money%, %currency%, %newline%.
CSHOP_TITLE = \yAK26 \rBolt%newline%\w%currency%: \r%money%
CSHOP_TITLE_PAGE = \d| \woldal:\d
CSHOP_TEAM_NAMES = Erkezo, Terrorista, Antiterrorista, Megfigyelo

;Sounds.
CSHOP_SOUND_ERROR = buttons/button11.wav
CSHOP_SOUND_EXPIRE = buttons/blip2.wav
CSHOP_SOUND_OPEN =

;0 = The sound is emited from the player (everyone around him hears it) | 1 = Only the player hears the sound
CSHOP_BUYSOUND_TYPE = 0
CSHOP_EXPIRESOUND_TYPE = 0
CSHOP_OPENSOUND_TYPE = 1

;Commands that open the shop.
CSHOP_COMMANDS = say /bolt, say_team /bolt, bolt, say /tesco, say /auchan, say /aldi, say /lidl

;Menu pages.
CSHOP_PREVPAGE = Elozo oldal
CSHOP_NEXTPAGE = Kovetkezo oldal
CSHOP_EXITMENU = \rBezar

;Items per page.
CSHOP_PERPAGE = 7

;Change  it if you want the shop to be available to players with a certain flag  only. Use "!" to make it available for all players.
CSHOP_FLAG = !

;If you want the shop to be for a certain team only. 0 = ALL | 1 = T | 2 = CT | 3 = SPEC (rofl?)
CSHOP_TEAM = 0

;Display items that aren't meant for your team?
CSHOP_SHOW_TEAMED = 0
CSHOP_ITEM_TEAMED = \r[\yTEAMED\r]

;Display items that you can't access?
CSHOP_SHOW_FLAGGED = 0
CSHOP_ITEM_FLAGGED = \r[\yLOCKED\r]

;0 = Every players has his own limit | 1 = Every team has his own limit | 2 = Limit is the same for all players
CSHOP_LIMIT_TYPE = 0

;Hide items that have reached their limit?
CSHOP_HIDE_LIMITED = 0

;Open the shop at spawn?
CSHOP_OPEN_AT_SPAWN = 0

;Use points system?
CSHOP_POINTS_ENABLE = 1

;Money name.
CSHOP_MONEY_NAME = mutyi
CSHOP_POINTS_NAME =  pont

;Money currency.
CSHOP_MONEY_CURRENCY = $
CSHOP_POINTS_CURRENCY =  pont

;Save points?
CSHOP_POINTS_SAVE = 1

;0 = Name | 1 = IP | 2 = SteamID
CSHOP_SAVE_TYPE = 0

;Commands for checking your points.
CSHOP_POINTS_COMMANDS = say /pontok , say_team /pontok

;Point rewards.
2x szorzóval
CSHOP_REWARD_NORMAL = 2
CSHOP_REWARD_HEADSHOT = 4
CSHOP_REWARD_KNIFE = 6
CSHOP_REWARD_VIP = 0
CSHOP_VIP_FLAG = b

;Give points for teamkill?
CSHOP_POINTS_TEAMKILL = 0

;Enable kill message?
CSHOP_KILL_MESSAGE = 0

;Show points on HUD?
CSHOP_HUD_ENABLED = 1
CSHOP_HUD_RED = 255
CSHOP_HUD_GREEN = 255
CSHOP_HUD_BLUE = 0
CSHOP_HUD_X = 0.01
CSHOP_HUD_Y = 0.93
Server auto restart was set in webadmin: every morning at 06:00 is a server restart
No errors in log files, no error.log in amxmodx/logs dir

After a mapchange the points are restoring. I'm not playing CS 1.6 anymore, maybe once in awhile. Yesterday i had 38 points, and at morning i had nothing. Some days ago i had 12 pts, i've left, and a bit later i joined again, and my points went back to zero... The other ppl has the same problem. And you're right: at server restart the server doesn't saving correctly maybe...

Last edited by vAx; 12-05-2016 at 12:36.
vAx is offline
Send a message via MSN to vAx
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-05-2016 , 17:38   Re: OciXCrom's Custom Shop 3.4 + API
Reply With Quote #58

If your points are saved after mapchange (didn't quite get what you meant by "restored"), then the problem is from the server auto-restart - I assume this is when the points are deleted? What does the restart actually do? How does it shut the server down?

Please attach the CustomShop.vault file, so I can have a look.
__________________

Last edited by OciXCrom; 12-05-2016 at 17:49.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
vAx
Junior Member
Join Date: Oct 2011
Location: Hungary
Old 12-10-2016 , 03:29   Re: OciXCrom's Custom Shop 3.4 + API
Reply With Quote #59

As i said: if someone joining, playing, leaving, and soon coming back, the points will be zero (doesn't restored - nvault_read doesn't work exactly idk why). The mapchange working perfectly (like the host said), the auto restart works too.
I can't upload the CustomShop.vault file cuz of "Invalid file type", soo I've changed the extension to dat.
Attached Files
File Type: dat CustomShop.dat (39.6 KB, 67 views)

Last edited by vAx; 12-10-2016 at 05:45.
vAx is offline
Send a message via MSN to vAx
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 12-10-2016 , 06:38   Re: OciXCrom's Custom Shop 3.4 + API
Reply With Quote #60

vax - wich kind of save you use, per name , ip or steamId ?

Because i believe is not saving at all the points for you - i think you running a non-steam server and if the oxi plugin have the save as default per steam is normaly to do not work.
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
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 12:54.


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