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