Kreedz Show Records V0.1.3 (eg: /wr)

Started by gladius
27/04/2014 03:21
Page 1 of 2
gladius27/04/2014 03:21(edited 15/05/2014 03:34)

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 EDIT

Communities
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

wayz27/04/2014 05:09(edited 27/04/2014 05:14)

good job.

Problem: If I try to compile this or kz demo v6.0.1 locally I'm geting tons
of errors.

gladius27/04/2014 05:15(edited 27/04/2014 05:16)

Could you show me the errors, please? What amxx version are you using?

wayz27/04/2014 05:27

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

gladius27/04/2014 05:47

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 :)

wayz27/04/2014 05:54

kz records compile fine now but kz demo is still giving me errors.

gladius27/04/2014 06:10

What errors now?

wayz27/04/2014 07:17

same as before.
http://www.directupload.net/file/d/3605/gvkv583l_jpg.htm

gladius27/04/2014 07:45(edited 27/04/2014 07:45)

Did you downloaded it again?, because that function client_print_color doesn't exist in new version.

wayz27/04/2014 07:58(edited 27/04/2014 08:01)

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?

gladius27/04/2014 08:28(edited 27/04/2014 08:38)

Updated plugin, read changelog

wayzzz, how many communities do you have in commrecords.ini ? try this cvar kz_wr_communities "0"

gladius27/04/2014 10:56

plugin updated, read changelog :)

minor bugfix

gladius29/04/2014 01:51

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 :)

wayz12/05/2014 06:33

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.

gladius15/05/2014 03:35

plugin updated, read changelog :)

minor bugfix

rawerecord holder Tournament #116/05/2014 02:49

Is possible to show LA records? Since the page is down the plugin doesn't work, but maybe with a .txt file, idk...

fshiju16/05/2014 23:19

can u add the way of changing msg when the kz_wr_hud 0

gladius17/05/2014 00:29

What you mean?

gladius02/09/2015 02:45

I just updated a minor bug which affect record command and prints, redownload :)

mpasd^22/09/2015 03:47

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 ?

Page 1 of 2

Please log in to post replies.