Kreedz Show Records V0.1.3 (eg: /wr)
Plugin for show any community records.
v0.1.3 by gladius
Features:
- Show world record (xj or cosy)
- Show community record
Cvars:
- kz_wr_hud <1|0> show record message 1: in hud, 0: in chat (default: 1)
- kz_wr_communities <1|0> On/Off communities need mapchange (default: 1)
Commands
- say /wr - show world record
- say /"communitytldname" show community record ( replace 'communitytld with correct community tld name and ignore quote)
Customizable part (inside plugin)
// BEGIN EDIT
new const Prefix[] = "[KZ]";
new const g_szDirFile[] = "kzrecords";
new const g_szCommRecordsFile[] = "commrecords.ini"
const MAX_COMMUNITIES = 25; // If you reach 25 communities, this must be incremented.
new const g_szDemoFiles[][][] = // This is wr records (no comm records)
{
{ "http://xtreme-jumps.eu/demos.txt", "demos_xj.txt", "demos_last_update_xj.txt" },
{ "https://cosy-climbing.net/demoz.txt", "demos_cc.txt", "demos_last_update_cc.txt" }
};
// END EDITCommunities
If you want to add new communities edit commrecords.ini file (/addons/amxmodx/data/kzrecords/commrecords.ini)
commrecords.ini Format:
; Demos URL
; Demos demos file
; Demos update demos file
; Community Name
; Community Tld Name ( say command )Requirements:
- AMX Mod X 1.8.1 (or higher)
Changelog:
v0.1
- Initial Release
-v0.1.1
- added new cvar kz_wr_communities
- fixed minor bug
-v0.1.2
- fixed minor bug
-v0.1.3
- fixed minor bug
Note:
- There are some problems with cosy records, they dont get udpated automatically :( because their website use an SSL protocol, so we cant get access to them)
* How to update records manually
- urls
xj records: http://xtreme-jumps.eu/demos.txt
cc records: https://cosy-climbing.net/demoz.txt
- open your addons folder
- go to amxmodx/data/kzrecords/ folder
- make a new txt file named demos_xj.txt for xj maps and demos_cc.txt for cc demos
- copy all the content from url and paste in the corresponding file
- that is all :)
Download:
MediaFire
Suggestions or problems please post it
Greetings, gladius
good job.
Problem: If I try to compile this or kz demo v6.0.1 locally I'm geting tons
of errors.
Could you show me the errors, please? What amxx version are you using?
kz demo errors:
http://www.directupload.net/file/d/3605/gvkv583l_jpg.htm
kz wr errors:
http://www.directupload.net/file/d/3605/ru69usjh_jpg.htm
using amxmodx 1.8.3
mmm if you use amxmodx 1.8.3+ it already include client_print_color function but with different structure, so I edited my own, please download both plugins again :)
kz records compile fine now but kz demo is still giving me errors.
What errors now?
same as before.
http://www.directupload.net/file/d/3605/gvkv583l_jpg.htm
Did you downloaded it again?, because that function client_print_color doesn't exist in new version.
its working now, thanks.
btw i'm testing kz records on my lan server and I noticed that
mapchange time is going from ~0.5 sec (without) to 4 secs with your
plugin, is that possible to fix?
Updated plugin, read changelog
wayzzz, how many communities do you have in commrecords.ini ? try this cvar kz_wr_communities "0"
plugin updated, read changelog :)
minor bugfix
Note: kzru.net is not working so please remove it from commrecords.ini because it does that server take a lot of time to start, thanks :)
I'm getting an error on every mapchange.
[CODE]L 05/12/2014 - 06:32:36: [AMXX] Displaying debug trace (plugin "kzrecordgds.amxx", version "0.1.2")
L 05/12/2014 - 06:32:36: [AMXX] Run time error 10: native error (native "TrieSetCell")
L 05/12/2014 - 06:32:36: [AMXX] [0] kzrecordgds_wa.sma::ReadRecords (line 369)
L 05/12/2014 - 06:32:36: [AMXX] [1] kzrecordgds_wa.sma::plugin_init (line 74)
[/CODE]
kz_wr_hud "0"
kz_wr_communities "0"
btw community records like /uq or /cn are not working
even if I have set kz_wr_communities to 1.
plugin updated, read changelog :)
minor bugfix
Is possible to show LA records? Since the page is down the plugin doesn't work, but maybe with a .txt file, idk...
can u add the way of changing msg when the kz_wr_hud 0
What you mean?
I just updated a minor bug which affect record command and prints, redownload :)
Don't know if you are still active, but, i have a problem with this plugin...
Every time the map changes the server kinda freezes, says connection timed out, and we have to wait for a minute to change the map...
Any idea why ?
Please log in to post replies.