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

Low Score Kicker


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:         
Ezekiel
Member
Join Date: Mar 2004
Old 03-20-2004 , 21:08   Low Score Kicker
Reply With Quote #1

A plugin to kickban a player for a set amount of time if their score is not upto the standard dictated in the plugin. First plugin, any suggestions or anything are more than welcome.

v1.1 on the way with cvars for bantime, on/off and the kick ratio.

Credit: Learned much of how to start doing this from OLOs high ping kicker. So credit to him.
Attached Files
File Type: sma Get Plugin or Get Source (score_kicker.sma - 1461 views - 1.9 KB)
Ezekiel is offline
tnsk8er27
Senior Member
Join Date: Mar 2004
Location: richfield MN
Old 03-20-2004 , 21:19  
Reply With Quote #2

havent tested it but it does sound kinda harsh doesnt it...

and what is a "bad" score in your mind?
__________________
Toxic
tnsk8er27 is offline
Send a message via AIM to tnsk8er27
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 03-20-2004 , 21:20  
Reply With Quote #3

To me this is just rubbish (I will not approve it).
Code:
new RATIO = -5 // the number kills-deaths has to equal or be smaller than for the user to be kicked and banned
So if you have 5 frags and 10 deaths, you are banned.

Now, how clever is that?

This is useless.

However after a quick look (no compiling) the code looks mostly OK though I wonder, for one second forgetting I don't like the overall idea behind plugins like these, why you make RATIO a plugin global var. If anything it should be customizable to the server's admin, but that's just me.
Another thing, it looks like you want to use RATIO as a constant (constants are quite often written as big letters only), however it's just a variable in your plugin. To make constants you can either use "new const CONSTANT = somevalue" (which is not really a true constant as you can init it with a non-constant), or even better use a "true" preprocessor constant: #define RATIO -5
Johnny got his gun is offline
Ezekiel
Member
Join Date: Mar 2004
Old 03-20-2004 , 21:21  
Reply With Quote #4

aye its a little harsh but i want it. There are people on my server running about with 1 12 and the like, i just dont want em there. Bad score is anything less than even imo.
Ezekiel is offline
Ezekiel
Member
Join Date: Mar 2004
Old 03-20-2004 , 21:22  
Reply With Quote #5

whats wrong with being banned if you have 5 frags and 10 deaths?
means youre rubbish, and hence not wanted on the server this was written for.
Ezekiel is offline
tnsk8er27
Senior Member
Join Date: Mar 2004
Location: richfield MN
Old 03-20-2004 , 21:22  
Reply With Quote #6

well why dont you add a cvar to control that so it can be aproved

otherwise you shouldnt post it if you just want it for yourself
__________________
Toxic
tnsk8er27 is offline
Send a message via AIM to tnsk8er27
Ezekiel
Member
Join Date: Mar 2004
Old 03-20-2004 , 21:24  
Reply With Quote #7

there is a var so that you can control the 'harshness' of the plugin...is this not what you mean?

i thought someone somewhere might want it/be interested. Jeez i apologise :/
Ezekiel is offline
tnsk8er27
Senior Member
Join Date: Mar 2004
Location: richfield MN
Old 03-20-2004 , 21:24  
Reply With Quote #8

no i mean to control the ratio
__________________
Toxic
tnsk8er27 is offline
Send a message via AIM to tnsk8er27
Ezekiel
Member
Join Date: Mar 2004
Old 03-20-2004 , 21:26  
Reply With Quote #9

oh i normally just open the smas and make changes to any of the setting i need to in there. thats what you mean yeah? so that it can be changed from ingame etc
Ezekiel is offline
tnsk8er27
Senior Member
Join Date: Mar 2004
Location: richfield MN
Old 03-20-2004 , 21:27  
Reply With Quote #10

make a cvar so you can change the ratio of when it will kick
__________________
Toxic
tnsk8er27 is offline
Send a message via AIM to tnsk8er27
Reply



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 08:09.


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