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

Killstreak records 2.1.2


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Statistical        Approver:   Hawk552 (427)
BeasT
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 03-04-2010 , 05:50   Killstreak records 2.1.2
Reply With Quote #1

Description:

This plugin saves killstreak records of all players and the best killstreak record in the server. You need mysql for this.

Client commands:

/ksr - displays the best killstreak record in server.
/kstop - displays top15 killstreak records. This command is only available in sql version.
/myksr - displays personal killstreak record.
/ksinformer - informs player about his killstreak amount, kill by kill.

Cvars:

ksr_min_kills (default: 2) - minimum killstreak required for the first record announcement.
ksr_advert_freq
(default: 600) - frequency (in seconds) the best record in server is announced to all players.
ksr_prune
(default: 30) - inactive personal records will be deleted after this many days.
ksr_min_players
(default: 3) - minimum players required for plugin to work.
ksr_sound
(default: 1):
  • 0 - won't play any sounds;
  • 1 - will play sounds.
ksr_save_by (default: 1) - save records by:
  • 1 - steamid;
  • 2 - IP;
  • 3 - nick.
ksr_host - mysql server ip, default: localhost.
ksr_user - username.
ksr_password - password.
ksr_database - DB name.
ksr_table - table name, default: ks_records.

Notes:

From version 2.1 there's an option to not add a kill to the killstreak if the victim was AFK. For that you need to change...

//#define USE_AFK_STATUS
to
#define USE_AFK_STATUS

...in the source code and you need to install this plugin: https://forums.alliedmods.net/showthread.php?t=195614 .

ksr_afktime (default: 5) - time (in seconds) the victim needs to be away, for him to be considered AFK and not be added to the killstreak.

If you don't want all of this, you don't need to change anything.

Change log:

Code:
2.1.2:
- Little bug fixes and optimizations.

2.1:
- Various bug fixes and optimizations.
- Option to not add AFK victims to the killstreak.
- New cvars: ksr_save_by, mysql setup cvars, ksr_afktime.

2.0.2:
- Fixed motd bug.
- Fixed /ksr command (was showing wrong nickname).

2.0.1:
- Fixed major bug.
- Optimized the code.

2.0:
- Plugin now saves all records in mysql database.
- Added /kstop command.

1.2:
- Added ksr_sound and ksr_min_players cvars.

 1.1:
- Added /ksinformer command.
- Bots not supported.
- Lang file updated.

1.0:
- Public release.


Credits:

ConnorMcLeod
Sid 6.7
shine771
hleV

Attached Files
File Type: zip sound.zip (9.9 KB, 743 views)
File Type: txt ksr.txt (3.3 KB, 735 views)
File Type: sma Get Plugin or Get Source (ks_records.sma - 1646 views - 12.5 KB)

Last edited by BeasT; 12-07-2013 at 08:05.
BeasT is offline
Send a message via Skype™ to BeasT
xakintosh
I run no-steam servers!
Join Date: Feb 2010
Location: Edge of nowhere
Old 03-04-2010 , 06:03   Re: Killstreak records
Reply With Quote #2

nice one
__________________
As soon as possible.
xakintosh is offline
Send a message via Yahoo to xakintosh Send a message via Skype™ to xakintosh
ReaD
Junior Member
Join Date: Sep 2009
Old 03-05-2010 , 03:43   Re: Killstreak records
Reply With Quote #3

Tested Nice Plugin
ReaD is offline
Melisko
Senior Member
Join Date: Feb 2010
Old 03-05-2010 , 04:08   Re: Killstreak records
Reply With Quote #4

ReaD , ty kurva vyjebana
Melisko is offline
lowled
Senior Member
Join Date: Sep 2007
Old 03-05-2010 , 08:45   Re: Killstreak records
Reply With Quote #5

nice plug ..

Is it possible that Bot doesnt count KS record ? (cvar ksbot 0/1)

The gong song appear a 10 Kill, is nt when you beat the record ? (the record was 13)

ty to read me ...
__________________
lowled is offline
BeasT
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 03-05-2010 , 10:39   Re: Killstreak records
Reply With Quote #6

Updated.


Quote:
Originally Posted by lowled View Post
The gong song appear a 10 Kill, is nt when you beat the record ? (the record was 13)
The gong is played when the best record in server is announced. (Look ksr_advert_freq cvar). The other sound is played when personal or best server record is broken.
BeasT is offline
Send a message via Skype™ to BeasT
koyot
Member
Join Date: Dec 2009
Location: Bulgaria
Old 03-05-2010 , 10:45   Re: Killstreak records
Reply With Quote #7

Can u make records saved by IP or nickname ?
koyot is offline
koyot
Member
Join Date: Dec 2009
Location: Bulgaria
Old 03-05-2010 , 10:50   Re: Killstreak records
Reply With Quote #8

and a cvar to turn on/off sounds
koyot is offline
lowled
Senior Member
Join Date: Sep 2007
Old 03-05-2010 , 11:35   Re: Killstreak records
Reply With Quote #9

Quote:
- Bots not supported - fixed.
ty !! ;D

May be a sound when ks top is beat ? (but just 1 time: if kstop is 15, player make 16,17,18etc, we here the sound at 16)

nice work so ..

ps: cvar for chat color ?
__________________
lowled is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 03-05-2010 , 11:41   Re: Killstreak records
Reply With Quote #10

Quote:
[nl]
CURRENT_GLOBAL_REC_CHAT = Huidig killstreak record behoort tot ^"%s^" - %d moorden!
NO_GREC = Niemand heeft al een killstreak record gemaakt.
PERSONAL_REC = Jouw killstreak record is %d.
NO_PREC = Je hebt nog geen killstreak record gemaakt.
CURRENT_GLOBAL_REC_HUD = Huidig killstreak record behoort tot^n %s - %d moorden!
BROKE_PREC = Je brak zojuist je killstreak record en het is nu %d!
BROKE_GREC = %s heeft juist een nieuw killstreak record gemaakt^nmet %d moorden!
INFORMER_ON = Jouw killsteak informatie is ingeschakeld.
INFORMER_OFF = Jouw killsteak informatie is uitgeschakeld.
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Reply


Thread Tools
Display Modes

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


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