Knowledgebase
9 Attachment(s)
This plugin allows to store stuff which can be queried using chat commands, like a clan's homepage URL or small howtos.
Commands:
Your SteamID will not be printed in the Messages, it will be replaced with your name. CVars: kbase_version - guess what :P kbase_public - if 1, answers are displayed to everyone instead of just the person who asked the question. example: Code:
? knowledgebase Changes: 1.6: Introduced kbase_delete 1.5: Introduced kbase_list, made kbase_public 1 per default 1.4: Special keyword "me" can be defined by every player, those defined are displayed publicly when players join (like chanserv does in irc) 1.3: Bugfix - knowledgebase table was not created in SQLite 1.2: Bugfix - forgot to call CloseHandle on the DB statements 1.1: introduced kbase_public cvar MGee |
Re: Knowledgebase
Awesome I been waiting for something like this for ages.
So if I did this: ! url "http://evil-twin.org.uk" and then ? url Would everyone on the server see the description? ^ that's what I really want ^ :) |
Re: Knowledgebase
no, currently only the one who asked the question sees the answer, but I think I could easily change that...
|
Re: Knowledgebase
Quote:
OK I'll wait and see if you can make the change to allow all to see the response. :up: Can you also please explain what we need to put in "configs "knowledgebase" or "default"" and where they need to be saved. |
Re: Knowledgebase
Changed it, I didn't test it but I don't see any reason why it shouldn't work :D
|
Re: Knowledgebase
Quote:
Before I install this, can you please go into a little more detail about the knowledgebase.cfg / default.cfg configs, where they need to go and the cvars we need to include. I see I'll be using kbase_public 1 Does that go in cfg/sourcemod/knowledgebase.cfg ? |
Re: Knowledgebase
Quote:
You only need to create the knowledgebase config if you don't have a default config or don't want them to be identical, so in most cases you'll just create a default config. If you don't have a MySQL db, use SQLite. It saves the whole database as a file somewhere on your server. It should work fine with this plugin, though I haven't tested it yet. Please let me know if you run into problems. |
Re: Knowledgebase
Quote:
I've fixed that in the latest version. Here's an example config, paste that into the "Databases" section in databases.cfg: Code:
"knowledgebase" If you want a single db (file) to be used for all DB related stuff, just name the config section "default". Hth... |
Re: Knowledgebase
Thanks.
I'll give it a go. [edit] Hmm added the plugin to the plugins folder. Added the lines to create the SQlite database. Tested that the Knowledgebase plugin's loaded with: sm plugins list. The Knowledgebase plugin is loaded. Typed ? test in chat expecting to see [KB] Keyword not found. Nothing Tried to add a keyword .. nothing. :/ |
Re: Knowledgebase
How exactly did you try to add the string? If you use the chat, you'll need to prepend the command with a ! or /, like so:
!? keyword I've registered ! and ? as regular commands, so the usual rules for commands apply to them as well :) If it still doesn't work then, please try from the server console and post error messages. |
All times are GMT -4. The time now is 18:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.