This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Someone say lag and kick...


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management       
johnny
New Member
Join Date: Nov 2005
Old 11-26-2005 , 07:50   Someone say lag and kick...
Reply With Quote #1

Hello everyone! I am newbie...I come from Taiwan so my English is'nt very good please forgive me
--------------
This plugin's USage is if some Player's say server is "lag",then this Plugin will kick that player just like that^^very easy..

--Added count 3 times say "lag" then server will ban 0
Attached Files
File Type: sma Get Plugin or Get Source (say_lag_kick.sma - 1290 views - 875 Bytes)
johnny is offline
Atti53
Member
Join Date: Oct 2005
Old 11-26-2005 , 08:00   Re: Someone say lag and kick...
Reply With Quote #2

Good!!
i will download this!
thankz!
__________________
(\_/)
(O.O)
(> <) <---- Put the evil bunny in your sign, help him achieve "WORLD DOMINATION!"
Atti53 is offline
Send a message via MSN to Atti53
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 11-26-2005 , 10:26  
Reply With Quote #3

Add this:
Code:
public client_connect(id)   count[id] = 0; public client_disconnect(id)   count[id] = 0;
And in the kick_player function change
Code:
count[32]++ // to this: count[id]++

Overall with some minor changes your player_kick function would look like this:
Code:
public kick_player(id) {     new msg[1024]     read_args(msg,1023)     new countcvar = get_cvar_num("say_lag_countkick")     new ipa[32]     get_user_ip(id,ipa,31)     if (contain(msg, "lag")!=-1){         if (get_cvar_num("say_lag_kick") == 1) {             server_cmd("kick #%d ^"[AMXX]kicked:because say lag!",get_user_userid(id))             return PLUGIN_CONTINUE         }         else {             if (count[id] == countcvar) {                 server_cmd("addip 60 %s",ipa)                 return PLUGIN_CONTINUE             }             else {                 count[id]++             }             return PLUGIN_CONTINUE         }     }     return PLUGIN_CONTINUE }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
wiggles
Member
Join Date: Aug 2005
Old 11-26-2005 , 17:32  
Reply With Quote #4

Quote:
Originally Posted by v3x
Add this:
Code:
public client_connect(id)   count[id] = 0; public client_disconnect(id)   count[id] = 0;
And in the kick_player function change
Code:
count[32]++ // to this: count[id]++

Overall with some minor changes your player_kick function would look like this:
Code:
public kick_player(id) {     new msg[1024]     read_args(msg,1023)     new countcvar = get_cvar_num("say_lag_countkick")     new ipa[32]     get_user_ip(id,ipa,31)     if (contain(msg, "lag")!=-1){         if (get_cvar_num("say_lag_kick") == 1) {             server_cmd("kick #%d ^"[AMXX]kicked:because say lag!",get_user_userid(id))             return PLUGIN_CONTINUE         }         else {             if (count[id] == countcvar) {                 server_cmd("addip 60 %s",ipa)                 return PLUGIN_CONTINUE             }             else {                 count[id]++             }             return PLUGIN_CONTINUE         }     }     return PLUGIN_CONTINUE }

Wow u really know ur stuff
wiggles is offline
Bend3R
Veteran Member
Join Date: Oct 2004
Location: Sweden (Stockholm)
Old 11-26-2005 , 17:34  
Reply With Quote #5

Quote:
Originally Posted by wiggles
Wow u really know ur stuff
Some does know and a lot don't.
Bend3R is offline
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 11-26-2005 , 19:55  
Reply With Quote #6

lol, this sounds good, only one thing, what if someone says "do you lag?" or "your so laggy your teleporting..........."
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
johnny
New Member
Join Date: Nov 2005
Old 11-26-2005 , 20:48  
Reply With Quote #7

Quote:
Originally Posted by Lord_Destros
lol, this sounds good, only one thing, what if someone says "do you lag?" or "your so laggy your teleporting..........."
Oh, I'm Known this bug,i have anthoer one in my computer!~later i will post it <i'm going to eat breakfast>
johnny is offline
johnny
New Member
Join Date: Nov 2005
Old 11-26-2005 , 20:49  
Reply With Quote #8

Quote:
Originally Posted by Lord_Destros
lol, this sounds good, only one thing, what if someone says "do you lag?" or "your so laggy your teleporting..........."
Oh, I'm Known this bug,i have anthoer one in my computer!~later i will post it <i'm going to eat breakfast>
johnny is offline
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 11-26-2005 , 23:55  
Reply With Quote #9

lol, breakfast? its 6:48 here .
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 11-27-2005 , 00:43  
Reply With Quote #10

I know quite a bit about general coding but I'm still learning about other modules such as Engine and Fakemeta. I started this stuff around February of this year.

Anywho, this could be easily exploited as soon as the player finds out about the "say 3 times then ban" thing. He could simply reconnect after the second time he says it and the variable would be reset to 0 ;)

So maybe you should look into nVault with the whole timestamp thing. I'm not sure if nvault_close is fixed yet though
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
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 13:11.


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