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

[Soccerjam] Ball Jump Stats [1.0.1] UPDATE


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   Brad (55)
shine771
Senior Member
Join Date: Jun 2007
Old 04-30-2009 , 16:36   [Soccerjam] Ball Jump Stats [1.0.1] UPDATE
Reply With Quote #1

Ball Jump Stats
[1.0.1]


- Description -

This is a plugin for Soccerjam mod. It detects ball jumps and writes your stats in MySql database. You can view your personal stats or see the top. You can switch methods how your stats are displayed - CZ Style tutor, chat or hud.

- Cvars -

Quote:
sj_bjs_min_dist < ###.# > < Min distance you must jump for a text message to be displayed to everyone in chat > < Def: 425.0 >
sj_bjs_min_height < ###.# > < Min distance you must jump from ground for a text message to be displayed to everyone in chat > < Def: 150.0 >
sj_bjs_min_bj < ## > < Min BallJump's needed for a text message to be displayed to everyone in chat > < Def: 5 >

sj_bjs_msg_type < 0 / 1 > < If player didn't have files for Tutor before he connected or sj_bjs_use_tutor is off, display stats in: 0 - chat, 1 - hud > < Def: 0 >
sj_bjs_use_tutor < 1 / 0 > < If possible use Tutors > < Def: 1 >
sj_bjs_tutor_style < 1 - 4 > < Tutor style > < Def: 3 >
sj_bjs_tutor_good_style < 1 - 4 > < Tutor style in which your jump details are showed if you make a good jump > < Def: 1 >

sj_bjs_beam < 1 / 0 > < Beam On/Off> < Def: 1 >
sj_bjs_beam_time < ## > < How long until the beam disappears? > < Def: 5 >
sj_bjs_beam_color < "### ### ###" > < Beam color in RGB format. If you want a random beam color, use "r". > < Def: "r" >

//MySQL
bj_host < "host" > < MySQL Host > < Def: "localhost" >
bj_user < "user" > < MySQL User > < Def: "root" >
bj_password < "password" > < MySQL Password. You must put this in amxx.cfg, because there is no value set. Or you can write it in the .sma and recompile it > < Def: "" >
bj_database < "database" > < MySQL Database you've made. > < Def: "soccerjam">

- Client Commands -

Quote:
say '/bjstats' or 'bjstats' - Displays your best stats.
say '/bjtop' or 'bjtop' - Displays the Top menu.
say '/bjtopc' or 'bjtopc' - Displays the Balljump Top.
say '/bjtoph' or 'bjtoph' - Displays the Balljump Height Top.
say '/bjtopd' or 'bjtopd' - Displays the Balljump Distance Top.
- MySQL -

For this plugin to work you must create a database named "soccerjam" or whatever name you changed bj_database to. If you don't know how to create a database, i suggest you search google. Use "127.0.0.1" instead of localhost if you use linux. Don't forget to set your MySQL password in amxx.cfg:

Quote:
bj_password "pass123" ; Put your password in ""(quotes).
Use "127.0.0.1" instead of localhost if you use linux.

- Installing -

Remember to put the contents of files.zip into your servers ctrike folder.

- Screen Shots -

Pay attention only to Ball Jump releated stuff. First 2 shows what BallJump is.

[IMG]http://img99.**************/img99/2849/scr1g.th.jpg[/IMG]
[IMG]http://img91.**************/img91/1968/scr2e.th.jpg[/IMG]

These 2 shows how Tutor stats look like.
[IMG]http://img111.**************/img111/8532/scr3s.th.jpg[/IMG]
[IMG]http://img259.**************/img259/5420/scr4o.th.jpg[/IMG]

Chat message stats.
[IMG]http://img232.**************/img232/7947/scr5.th.jpg[/IMG]

Hudmessage stats.
[IMG]http://img128.**************/img128/1754/scr6x.th.jpg[/IMG]

Beams:
[IMG]http://img148.**************/img148/5766/scr7h.th.jpg[/IMG]

Top:
[IMG]http://img218.**************/img218/5598/scr8.th.jpg[/IMG]

- Change Log -


Code:
0.7.0
* Initial Release

0.7.1
* Optimised code

0.7.2
* Optimised code
* Fixed some minor bugs
* Added a cvar to change the tutors style if player made a good jump
* Now it'll show if you've jumped over a player with a balljump
* Now it counts and shows BallJumps and Air Time in top and stats
* Changed some messages
* Fixed the bug when FAILED Bj's are still writen into stats
* Fixed the bug when you could BJ on someones head.. run on it, then jump off and get amazing distances

0.7.3
* Fixed the bug when sometimes you make 1+ BJ's but it still shows 1bj.
* Edited some messages
* Now after your jump it shows a beam where you jumped(like kz jumpstats).
* Fixed the distance bug, if you BJ forward and then back your distance wont be correct.
* Fixed the bug when the round restarts while you're in BJ and you get amazing distances.
* Added Cvars for beam.

1.0.0
* Recoded the plugin. I didn't edit it, i recoded the whole plugin from nothing.
* Made a new balljump detection method, hasn't failed me yet.
* Changed SQL cvar names.
* Changed messages.
* Changed the style/design of top15 and stats. I really don't want to make screens
for everything again, just download and see for yourself.
* That's all, just the old method didn't work well, sometimes it didn't catch double balljumps
and stuff, so i had to recode it, that was an awful method i used before, this one is less
resource eating.

1.0.1
* Fixed the bug when you jump on net or any player and get impossible distances and bj counts.
Attached Files
File Type: zip files.zip (8.0 KB, 3063 views)
File Type: sma Get Plugin or Get Source (sjbjs.sma - 5226 views - 30.5 KB)

Last edited by shine771; 07-31-2009 at 08:50.
shine771 is offline
 



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 04:12.


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