|
Дата: Четверг, 24.01.2013, 00:52 | Сообщение # ( 1)
|
Пользователи
Главный Администратор !
|
uq_jumpstats by ALLCS-GAMES version 2.42 Hi everyone! As you might know, in the Kreedz world two stats plugin are dominating, Jumpstats by Exolent and Long Jump Stats - eXtreme Modification by Numb. Both have their advantages and disadvantages, that's why I've just decided to do something mean in my plugin, whether I have succeeded? Time will tell). The starting point that I used was the original kz_stats by SchlumPF, modded by xPaw, but beyond that, I just borrowed some parts of the code from those LJ Stats - eXtreme Modification and Jumpstats, for which I express my special thanks to their developers.
About Plugin:
// Thanks Exolent thread for a pattern cause i'm tired format my theard
This plugin measures jump techniques in Counter-Strike 1.6. These techniques are:LongJumpHighJumpWeirdJumpWeirdJump after Double DuckCountJumpDouble CountJumpMulti CountJumpDrop CountJumpDrop Double CountJumpDrop Multi CountJumpBhopJumpDrop BhopJumpStandup BhopJumpLadder BhopReal Ladder BhopLadderJumpUp BhopJumpUp Standup BhopJumpUp BhopJump in DuckBhopJump in DuckDuckBhopJumpStandup CountJumpStandup Double CountJumpStandup Multi CountJumpDrop Standup CountJumpDrop Standup Double CountJumpDrop Standup Multi CountJumpMultiBhopJumpSlide LongJump - (Simple version and works only on two maps "slide_gs_longjumps","b2j_slide_longjumps ")Features:Jump Stats:DistanceMaxspeed and GainPrestrafeStrafesSyncDuck CountStrafe Stats:Gain speed each strafeSync each strafeLoss on each strafeAir time on each strafeJump BeamFirst type = simple beamSecond type = beam with showing strafesScript detectionAny weapon is allowed for statsFail StatsShowing Fall/Height distanceOn/Off doing Screenshoot if player get into top20 for each techniqueTop 15 per techniqueOption to save or reset tops every map changeSounds:ImpressivePerfectHoly ShitWicked SickGodlikeTurning On/Off Abilities:Current SpeedJump PrestrafeSpeed after DucksJump StatsStrafe StatsJump messages in chatJump BeamJump SoundsMultiBhop PrestrafeLJ PrestrafeBlock DistanceEdge DistancesEdge Distances whenCvar to limit which team(s) can use StatsServer Settings enforcer:edgefriction 2mp_footsteps 1sv_cheats 0sv_maxspeed 320sv_stepsize 18sv_maxvelocity 2000Client cvar enforcer (legal jump settings)developer 0fps_max 101cl_forwardspeed 400cl_backspeed 400cl_sidespeed 400If player jumped a block jumpShows BlockShows JumpOffShows LandingStats only show when sv_airaccelerate is 10 or 100Sql SupportAnd some Features which can be found in /ljsmenuSQL Install - Make Database (in phpmyadmin or something else) called uq_jumpstats (or the name you put for kz_uq_db) - Put folder /uq_jumpstats into your webserver - Open the config.php with notepad and set needed options
Requirements:- AMX Mod X version 1.8.1 or higher - Fakemeta Module - HamSandwich Module - CStrike Module - Engine Module - Fun Module - Mysql Module Dont forget first set cvars in cfg and then restart server(map)
Код [color=green]###############################################[/color] [color=blue]Cvar's ( in « » default values)[/color] [color=red]1. [color=#ff0000][color=#ff0000][color=green]What should work when players connect to the server[/color][/color][/color][/color] [color=red][color=red]// 0 = none[/color][color=red]// a = colorchat[/color][color=red]// b = stats[/color][color=red]// c = speed[/color][color=red]// d = showpre[/color][color=red]// e = strafe stats[/color][color=red]// f = beam[/color][color=red]// g = duck stats for mcj[/color][color=red]// h = shows message when your bhop prestrafe is failed[/color][color=red]// i = show multibhop pre[/color][color=red]// j = show prestrafe after duck[/color][color=red]// k = show lj prestrafe[/color][color=red]// l = show edge[/color][color=red]// m = show edge when fail (without block)[/color]// n = on/off sound's on players[/color] [color=black]kz_uq_connect "abdehklmn"[/color] [color=#ff0000]2.[/color] [color=#008000]Allow doing ScreenShot if Player going in Top10 (not work with kz_uq_sql «1» or «2» and for map top)[/color] kz_uq_screenshoot «0» [color=#ff0000]3.[/color] [color=green]For what team stats enable (0=all team,1=T,2=CT)[/color] kz_uq_team «0» [color=#ff0000]4.[/color] [color=#008000]Max strafes[/color] [color=black]kz_uq_max_strafes «14»[/color] [color=red]5.[/color] [color=green]Allow highlighting after landing (1 = on, 0 = off; works for holy, leet and god distances)[/color] kz_uq_light «0» [color=red]6.[/color] [color=green]Allow sounds (1 = on, 0 = off)[/color] kz_uq_sounds «1» [color=red]7.[/color] [color=green]How to save Top10 (2 = steamid, 1 = Ip, 0 = name)[/color] kz_uq_top_by «1» kz_uq_save_top «1» - On/Off TOP10 (1 = on, 0 = off) kz_uq_maptop «1» - On/Off MapTop (1 = on, 0 = off) kz_uq_save_extras_top «1» - On/Off Extra Tops (1 = on, 0 = off) [color=red]8.[/color] [color=green]Allow check to legal settings (1 = on, 0 = off)[/color] [color=orange]a)[/color] kz_uq_legal_settings «1»[color=orange]b)[/color] kz_uq_fps «1» (1=more than 110 FPS jump does not count, 0= counts)[color=#ffa500]a)[/color] kz_uq_noslowdown «0» (on/off protection from noslowdown bhoping) [color=red]9.[/color] [color=green]The prefix for all messages in chat[/color] kz_uq_prefix «unique-kz» [color=red]10.[/color] [color=green]How to set up a server by value sv_airaccelerate (0=10aa, 1=100aa)[/color] kz_uq_airaccelerate «0» [color=red]11.[/color] [color=green]Color Hud message statistics when you jump, in the RGB[/color] kz_uq_stats_red «0» kz_uq_stats_green «255» kz_uq_stats_blue «159» [color=red]12.[/color] [color=green]Color Hud messages Fail statistics when you jump, in the RGB[/color] kz_uq_failstats_red «255» kz_uq_failstats_green «0» kz_uq_failstats_blue «109» [color=red]13.[/color] [color=green]Color Hud messages prestrafe, in the RGB[/color] kz_uq_prestrafe_red «255» kz_uq_prestrafe_green «255» kz_uq_prestrafe_blue «255» [color=red]14.[/color] [color=green]Color of speed, in the RGB[/color]kz_uq_speed_red «255» kz_uq_speed_green «255» kz_uq_speed_blue «255» [color=red]15.[/color] [color=green]Coordinates Hud messages[/color] [color=orange]a)[/color] General stats jump kz_uq_stats_x «-1.0» kz_uq_stats_y «0.70» [color=#000000][color=#ffa500]b)[/color] Strafes Stats[/color] kz_uq_strafe_x «0.70» kz_uq_strafe_y «0.35» [color=orange]c)[/color] Ducks Stats for Multi CountJump kz_uq_duck_x «0.6» kz_uq_duck_y «0.78» [color=orange]d)[/color] For speed kz_uq_speed_x «-1.0» kz_uq_speed_y «0.83» [color=orange]e)[/color] for prestrafe kz_uq_prestrafe_x «-1.0» kz_uq_prestrafe_y «0.65» [color=red]16.[/color] [color=green]Channels Hud messages[/color] [color=orange]a)[/color] General stats jump kz_uq_hud_stats «3» [color=orange]b)[/color] Strafes Stats kz_uq_hud_strafe «4» [color=orange]c)[/color] Ducks Stats for Multi CountJump kz_uq_hud_duck «1» [color=orange]d)[/color] For speed kz_uq_hud_speed «2» [color=orange]e)[/color] For prestafe kz_uq_hud_pre «1» [color=red]17.[/color] [color=green]Color of chat messages of distance jump (good = grey, pro = green, holy = blue, leet = red, god = red (with sound godlike for all players))[/color] [color=orange]a)[/color] LongJump/HighJump kz_uq_good_lj «240» kz_uq_pro_lj «245» kz_uq_holy_lj «250» kz_uq_leet_lj «253» kz_uq_god_lj «255» [color=orange]b)[/color] CountJump kz_uq_good_cj «250» kz_uq_pro_cj «255» kz_uq_holy_cj «260» kz_uq_leet_cj «265» kz_uq_god_cj «267» [color=orange]c)[/color] Double CountJump/Multi CountJump kz_uq_good_dcj «250» kz_uq_pro_dcj «255» kz_uq_holy_dcj «260» kz_uq_leet_dcj «265» kz_uq_god_dcj «270» [color=orange]d)[/color] LadderJump kz_uq_good_ladder «150» kz_uq_pro_ladder «160» kz_uq_holy_ladder «170» kz_uq_leet_ladder «180» kz_uq_god_ladder «190» [color=orange]e)[/color] BhopJump/StandUp BhopJump kz_uq_good_bj «230» kz_uq_pro_bj «235» kz_uq_holy_bj «240» kz_uq_leet_bj «245» kz_uq_god_bj «247» [color=orange]f)[/color] WeirdJump/Drop CountJump/Ladder BhopJump kz_uq_good_wj «255» kz_uq_pro_wj «260» kz_uq_holy_wj «265» kz_uq_leet_wj «270» kz_uq_god_wj «272» [color=orange]g)[/color] Drop BhopJump/Drop StandUp BhopJump kz_uq_good_dbj «240» kz_uq_pro_dbj «250» kz_uq_holy_dbj «265» kz_uq_leet_dbj «270» kz_uq_god_dbj «272» [color=orange]h)[/color] StandUp CountJump(if 100aa all cvar dist +15 units, doublescj,multiscj=scj+15 units) kz_uq_good_scj «240» kz_uq_pro_scj «245» kz_uq_holy_scj «250» kz_uq_leet_scj «255» kz_uq_god_scj «257» [color=#ffa500]i)[/color] Drop StandUp CountJump(double,multi)kz_uq_good_dropscj 255 kz_uq_pro_dropscj 260 kz_uq_holy_dropscj 265 kz_uq_leet_dropscj 270 kz_uq_god_dropscj 272 [color=#ffa500]j)[/color] Up Bhop kz_uq_good_upbj 225 kz_uq_pro_upbj 230 kz_uq_holy_upbj 235 kz_uq_leet_upbj 240 kz_uq_god_upbj 245 [color=#ffa500]k)[/color] Up StandBhop kz_uq_good_upsbj 225 kz_uq_pro_upsbj 230 kz_uq_holy_upsbj 235 kz_uq_leet_upsbj 240 kz_uq_god_upsbj 245 [color=#ffa500]l)[/color] Bhop In Duck(Up Bhop In Duck) kz_uq_good_bhopinduck 205 kz_uq_pro_bhopinduck 210 kz_uq_holy_bhopinduck 215 kz_uq_leet_bhopinduck 220 kz_uq_god_bhopinduck 222 [color=#ffa500]m)[/color] Duck Bhopkz_uq_good_duckbhop 100 kz_uq_pro_duckbhop 115 kz_uq_holy_duckbhop 130 kz_uq_leet_duckbhop 145 kz_uq_god_duckbhop 160 [color=#ffa500]m)[/color] Real Ladder Bhop kz_uq_good_realldbhop 240 kz_uq_pro_realldbhop 250 kz_uq_holy_realldbhop 265 kz_uq_leet_realldbhop 270 kz_uq_god_realldbhop 272 [color=red]18.[/color] [color=green]on/off each technique[/color]kz_uq_lj «1» kz_uq_cj «1» kz_uq_bj «1» kz_uq_sbj «1» kz_uq_wj «1» kz_uq_dcj «1» kz_uq_mcj «1» kz_uq_drbj «1» kz_uq_scj «1» kz_uq_drcj «1» kz_uq_ladder «1» kz_uq_ldbj «1» kz_uq_scj «1» kz_uq_dscj «1» kz_uq_mscj «1» kz_uq_dropscj «1» kz_uq_dropdscj «1» kz_uq_dropmscj «1» kz_uq_duckbhop «1» kz_uq_bhopinduck «1» kz_uq_realldbhop «1» kz_uq_upbj «1» kz_uq_upsbj «1» kz_uq_upbhopinduck «1» kz_uq_multibhop «1» kz_uq_dropdcj «1» kz_uq_dropmcj «1» [color=red]19.[/color] [color=green]Min/Max Jump distance[/color] kz_uq_min_dist «215» kz_uq_max_dist «290» [color=#ff0000]30.[/color] [color=green]Min/Max Jump distance (Ups bhop, Multibhop ,Real Ladder Bhop, Duckbhop, Ladder Jump)[/color] kz_uq_min_dist_other «120» [color=#ff0000]21.[/color] [color=green]Min/Max block to show in Jump[/color] kz_uq_max_block «290» kz_uq_min_block «100» [color=#ff0000]22.[/color] [color=green]Minimum Prestrafe to show[/color] kz_uq_min_pre «60» [color=#ff0000]23.[/color][color=seagreen]Allow showing info about stats when you record demo[/color] kz_uq_demo_info «1» [color=#ff0000]24.[/color] [color=green]Sql cvars[/color] [color=#ffa500]a)[/color] How work Sql Module (SQL stats enable, 0=Disable) kz_uq_sql «0» [color=#ffa500]b)[/color] Enable/Disable Web Top (1=Enable,0=Disable) kz_uq_web 0 [color=#ffa500]c)[/color] Options cvars for Sql Module kz_uq_host "127.0.0.1" kz_uq_user "root" kz_uq_pass "" kz_uq_db "uq_jumpstats" [color=#ffa500]d)[/color] This Option used only in Showing Top(sql), change this if you use another link on you web server kz_uq_url "http://localhost/uq_jumpstats/index.php?type=lj&from_game=true" All cvar can be found and set in \addons\amxmodx\configs\uq_jumpstats\config.c fg
Players commands
say /strafes – on/off statistics Strafes say /showpre –on/off display prestrafe say /ducks –on/off statistics ducks for multi cj say /ljstats –on/off the main statistics say /uqversion – show version say /beam – on/off showing the trajectory of the jump say /speed –on/off display of speed player say /colorchat –on/off display of color in the chat messages from other players say /ljsmenu – open the configuration menu say /ljtop – open TOP10 menu say /bhopwarn -on/off show message when you bhop prestrafe is fail say /multibhop - on/off show multi bhop pre say /duckspre - on/off display prestrafe after each duck say /ljpre - on/off display prestrafe for LJ say /failedge - on/off display jumpoff wehn failed without bolock say /edge - on/off display jumpoff,block,landing say /height - on/off display height of jump say /mylj - on/off myljtop menu say /jof - on/off showing jumpoff say /joftr - on/off jumpof trainer say /wpnlj - on/off weapon top menu say /jheight - on/off jump height
Admin command amx_reset_uqtops – reset all tops
Credits
SchlumPF, xPaw, Exolent, Fatalis, Numb, Lt.RAT, kielor, Light (for SQL and PHP)
[color=#0000ff]and big thanks [color=#4b0082]kib0rg, MaHy, saix, newbie, dImAr1k, Adantoud, KzmJ > SLayeR, Jig'SaW[/color][/color]
and thanks for some parts of code ot_207, Bentski
Код 1.97aFix Landing Calculation1.97bFix mini bug with landing1.98Fix showing /speedFix bug when jump duckbhop with touching ladderFix bug when ladderbhop=dropbhop1.98aDo better protection from ladder bugs1.99Change surf/slide bug detection2.0Optimized code, removed my comments and unnecessary lines, made it more readable and comfortable for moddingFinally, my hands reached to calculate the distance, now stats show more or less real distance thank Exolents notes, and do corrected the calculation fail distance.fix some problems with dropbjDue to problems with the surf bug i add detecting touch somthing, now if when you jumped and if you touch somthing in air then stats=failedAdded personal stats worked with *. dat tops, open top with cmd say /myljSo, i decided to add support for jumping with weapons, but its make some lags on server, so i made tops just for standard techniques, and without sql support, open top with cmd say /wpnljfixes various bugsand update php2.0afix array error with /myljadd in "kz_uq_connect" letter n=enable sound on player2.0bFix some errorsFix maptop+webtopChange the registers table names, now they are the same in php and sma, so advise update all(php and plug) otherwise you may experience errors, as if there are problems with an existing database tables, change the registers for all top table names i.e, LJ_TOP in lj_top etc .2.0cdo beter protection from bug cj=sbj2.1fix some problems with duckbhop, dropcj, wj+ddfix some errorsAdded changing the minimum distance to show for various weapons2.12Replaced cvar kz_uq_port on kz_uq_url, now you cant write the path to the php file directly, I advise you to update the configuration fileMade a small optimization pluginCorrected some errors2.13Fix some problems with /speed.Optimized Jumpoff detection, and added the command /jof. Now you can see your jumpoff, as similar with /showpre seen your prestrafe.Added my Jumpoff Trainer, turn on with cmd /joftrFixed a few minor bugs2.14Corrected problem with displaying jumpoff + block on bhop blocks.Fixed a few minor bugs2.15Fixed a problem when, instead of dropcj showed dropbj / wj.Added block tops(weapon maxspeed=250) for each technique except ladderjump, to open menu say /blocktop, also add the cvar to turn on/off block tops kz_uq_block_top "1"n with this [color = red] apdetanul nx [/ color] there now, too, can find the top of blocks, as organized by the conclusion in head-tops: the block and the Jumpoff, if one were to take on the block.">update php too, now you can find the top of blocks at main page of technique top.2.16do some fixes bugs, glitches and others problems.Redone sql module (thanks Light) old sql tables are not compatible with the new sql module.written a new php v2.0 (thanks Light) for new sql module, ie the old version of php not compatible with the new v2.0.done optimization of some sections of codeCons - removed dynamic changing cvars, ie, if you want to change any cvar, change in the cfg and then restrat server.Pluses - Static arrays replaced by dynamicRemoved cvar kz_uq_sql = 2 because he makes some problems, but instead of this i add ability to use a standard menu tops with enabled sql module (set kz_uq_sql=1 and kz_uq_web=0), this more convenient.A few features: added command say /jheight which shows the maximum height of the jump, also added bloktop for various weapons.2.17Fix problems when cvars not load from cfg file when server startingFix bug when /speed disapear when player die2.18fix a bug with the changing nickname(shows old nick in colorchat messages)Fixed minor problems with dropbjTo prevent bugs with distance, i add checking dist for standard techniques (LJ/HJ> 260, CJ/DCJ/MCJ/WJ/.../>277, BJ/SBJ>253) if distance more, stats reseted, turning on\off by cvar kz_uq_bug_check2.19remove my changes about dropbj since 2.18, cuz it's makes some new bugs.2.20corrected bug with weapon topcorrected glitch when HJ blocktop sometimes resetedadd in cfg, in cvar kz_uq_url correct link, for fixing motd scroll issue.2.21Fix problems with /speed for spectatorsCorrected a problem when in web Top formed empty name cells.Cosmetic improvementsOptimiz some parts of codeSmall fixes2.22Corrected text errors in blocktopsAdded in function for checking bugs last other techniquesOther minor bug fixes2.23Corrected some bugs and errors if server using sql moduleAdded cvar kz_uq_noslowdown.2.24Fix map top if sql module=onOptimized some parts of the code2.25do better protection from empty cells in database if server using sql module2.26hopefully is now exactly fixed bug with empty cells in mysql database!2.27Corrected glitch when in LJ top created bugs jumps2.28Fix a problem when server freezes without error log2.29Do beter Fix for problem when server freezsmall fixesAdded cvar kz_uq_only_adimns. Responsible for working stats only for admins, default "0"2.29aFix if sql module create many sql connections2.29bAnother fix a glitch with many sql connections.. again)2.30seems finally i develop normal antibug stats system, so test it and write work normaly or noFixed displaying jumpoff in bloktop if sql=1, web=02.31Added a new pair of features, but they are in testing modeIngame strafe stats, someone has already testing, some do not, but I still highly recommend use this feautre only on Lan cuz it laggy thing)added a script detecion method. This method not a bad catch kzh scripts, but not with 100% guarantee) players who catching logged in amxmodx/logs/uq_jumpstats.txt2.32Fixed cvar kz_uq_istrafesFixed script detection method, now he will looks only on people who jumped more then distance=Holyshit, cuz it may mistake on a small distance.2.32bFixed a glitch in when script detector logged wrong players2.33Corrected logging function, hope this last update with this problem ....Corrected a bug with the command /uqsound2.33bSome small changes in script detectorAdded cvar kz_uq_script_notify - notify all players on the servers that someone jumps with script (default: on), and kz_uq_script_kick - which will kick scipter (default: off)2.34Added two cvars. First kz_uq_demo "0" (with "1" custom sprite not be loaded). I'm did not add this cvar in config file (cuz he reading not from first server restarting, but you can add yourself and you need restart your server two times). So change this cvar in console and then restart you server. A second cvar - a notification that the record demos are not safe - kz_uq_demo_notify, if you have Public server or you dont write a demo for some communty you can safely put in the cfg file value=0.2.35Remove all sprites and demo cvars (not needed)2.36Fix various errors related with /istrafeSome small fixesAdd "prestrafe sync" for ordinary cj/dcj/mcj and drop,standup cj/dcj/mcjAdd in Antiscript detector ban system, all new cvars can be found in the config file.2.36bFix one bug with prestrafe sync2.37Small Fix for Scriptdetector to prevent glitch reusltsFix problem when sometimes ladder bhop did not workAdded ability to display info about beated block in ColorChat messages. Cvars for configure kz_uq_block_chat_show, kz_uq_block_chat_min (details in the config file).2.37aMinor fix for a script detector now it only works if the player makes more than 4 strafes (cause detector make false results if a player makes a 1-4 strafes)2.37bFix small glitch with prestrafe sync2.37сMake ScriptDetector Logs more detail2.37dCorrected glitch in console with prestrafe sync[color=black]2.38[/color]Added cvar kz_uq_afterladder, which allows you to display stats (cj, mcj, dcj) after ladder jump. Since it may show incorrectly technique, use it if you play on lan (not use on public server)Added displaying speed after first duck if you use /duckpre2.39betaAdd MultiLang support in uq_jumpstas.sma (uq_jumpstas_tops.sma i think in near future)Fix problem with backwards (when player push back button at the end of jump)Add cmd /speedt, this cmd switches showing type of speed (big or small hud)Fix showing wrong block valueAdd protection method from triggers, now first jump after touching trigger will be failedRedone airaccelerate cvar, now you can change cvar kz_uq_airaccelerate at any value (like kz_uq_airaccelerate 500) and your server will work with sv_airaccelerate 500, but value=0 reserved fo 10aa, value=1 reserved fo 100aa, also I want to remind that plugin tested/testing only on 10aa, so it can be bugged with other airaccelerate value.Reanimate AFTER Jump technique, now available CJ/DCJ/MCJ after Jump/Ladder/Bhop and SCJ/DSCJ/MSCJ after Jump, but without Tops. With this changes removed afterladder cvar.Some other Fixes2.40Add MultiLang in uq_jumpstats_topsFix problem when block stats doesnt appear2.41Fix lang File2.41afix duck pre2.42Corrected a problem with the first Duck with /duckpreImproved detection SCJ after JumpCorrected wrong results in top for sql versionAdded a cvar kz_uq_speed_allteam, on\off speedometer to all team (not dependent on cvar kz_uq_team)Other fixes Код 2.1Fixed bug with old mysql serversFixed bug with empty names on sort ordersFixed bug with block jumps sortFixed wrong num order in topFixed CSS and HTML, now it's valid XHTML 1.0 StrictFixed possible XSS inject in nameFixed motd scroll issue. Please add &from_game=true into cfg file for cvar kz_uq_url. It's temporary and will be autoadded in uq_jumpstats 2.20.Added search by name, ip, steamid. * is replaced by %.2.2Fixed some bugs with mysqlAdded admin panel. Allows deletion of player or player jump.2.3New function to generate title. More coming soonFixed some errors2.4Fixed some errors
Сообщение отредактировал Slesh - Четверг, 24.01.2013, 00:53
| |
| |