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

Auto Kick


Post New Thread Reply   
 
Thread Tools Display Modes
123
Veteran Member
Join Date: Apr 2005
Location: Katy, TX
Old 04-15-2005 , 17:52  
Reply With Quote #11

Well I still can't get it to work...
Does it work if you have admin immunity ?

Code:
#include <amxmodx> public plugin_init() {     // ..     register_plugin("Frag Kicker","1.0","ShadowLeader(123)")     register_event("ResetHUD","newRound","be")     register_cvar("frags_limit","10") } public newRound(id) {     if(get_user_frags(id) >= get_cvar_num("frags_limit")) {         server_cmd("kick #%d",get_user_userid(id))     }     return PLUGIN_HANDLED }
__________________
//ShadowLeader - 123
123 is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-15-2005 , 17:57  
Reply With Quote #12

Yea, should still work.
__________________
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
123
Veteran Member
Join Date: Apr 2005
Location: Katy, TX
Old 04-15-2005 , 17:59  
Reply With Quote #13

I use it on a listen server with bots..
Can that have something to do with it ?
__________________
//ShadowLeader - 123
123 is offline
123
Veteran Member
Join Date: Apr 2005
Location: Katy, TX
Old 04-15-2005 , 18:08  
Reply With Quote #14

Just tested it on my dedicated server, and it worked...
But how do I add a reason ?
__________________
//ShadowLeader - 123
123 is offline
123
Veteran Member
Join Date: Apr 2005
Location: Katy, TX
Old 04-15-2005 , 18:21  
Reply With Quote #15

Nvm found out..
But how do I get it to print the frags_limit in the reason ?
__________________
//ShadowLeader - 123
123 is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 04-15-2005 , 18:26  
Reply With Quote #16

server_cmd("kick #%d ^"To Many Frags^"",get_user_userid(id))
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-15-2005 , 18:46  
Reply With Quote #17

That's not what he meant.
Code:
server_cmd("kick #%d ^"To Many Frags (%d)^"",get_user_userid(id),get_user_frags(id))

Example:
Kicked
Reason: Too many frags (100)
__________________
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
WaZZeR++
Veteran Member
Join Date: Mar 2005
Location: Sweden
Old 04-15-2005 , 18:48  
Reply With Quote #18

will this work?

Code:
server_cmd("kick #%d ^"To Many Frags ^( %d ^)^"",get_user_userid(id),get_cvar_num("frags_limit"))
WaZZeR++ is offline
Send a message via MSN to WaZZeR++
123
Veteran Member
Join Date: Apr 2005
Location: Katy, TX
Old 04-15-2005 , 19:56  
Reply With Quote #19

If I want it to ban in 30 minutes instead, can I then do this ?

Code:
server_cmd("ban #%d 30 ^"Reached Frag Limits (%d)^"",get_user_userid(id),get_user_frags(id)
__________________
//ShadowLeader - 123
123 is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-15-2005 , 21:51  
Reply With Quote #20

Yea, but you might want to kick them afterwards.

"ban #id kick [reason]" - Not sure if that works..
__________________
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 08:26.


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