Raised This Month: $ Target: $400
 0% 

Auto Kick


Post New Thread Reply   
 
Thread Tools Display Modes
123
Veteran Member
Join Date: Apr 2005
Location: Katy, TX
Old 04-16-2005 , 07:02  
Reply With Quote #21

It doesn't work...
__________________
//ShadowLeader - 123
123 is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-16-2005 , 07:10  
Reply With Quote #22

Then do:
Code:
server_cmd("ban #%d 30",get_user_userid(id)) server_cmd("kick #%d ^"Reached Frag Limits (%d) - Banned 30 min^"",get_user_userid(id),get_user_frags(id))
Or something..
__________________
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-16-2005 , 08:11  
Reply With Quote #23

It just kicks a user, but thin the reason it says banned
__________________
//ShadowLeader - 123
123 is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 04-16-2005 , 12:42  
Reply With Quote #24

Code:
server_cmd("banid 30 #%d",get_user_userid(id))
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
vids
Junior Member
Join Date: Jun 2006
Old 06-18-2006 , 12:22  
Reply With Quote #25

=======================================
#include <amxmodx>

public plugin_init() {
// ..
register_plugin("Auto_Kicker","1.0","ShadowLe ader(123)")
register_event("ResetHUD","newRound","be")
register_cvar("frags_limit","30")
}

public newRound(id) {

if(get_user_frags(id) >= get_cvar_num("frags_limit")) {
server_cmd("banid #%d 30",get_user_userid(id))
server_cmd("kick #%d ^"Reached Frag Limits (%d) - Banned 30 min^"",get_user_userid(id),get_user_frags(id) )
}

return PLUGIN_HANDLED
}

========================================

Hi All, this auto kick Works when player reach 30 frags but with 1 glitch though....the 30 min banned don't work any idea.

also, if I want to change from Reach Frag Limit but instead I want it to be "Reach Death Limit", which part do I have to change.....kinda lost on these....

Thank you in advance.
vids is offline
allroundernaman
Member
Join Date: May 2020
Location: Somewhere Virtual
Old 07-08-2020 , 15:29   Re: Auto Kick
Reply With Quote #26

Hey anyone still here? I am too searching for a kinda solution here.
I too want that when a player (not admin) reaches a limit, it gets banned for a time limit like 30 minutes with a specific reason.
__________________
SELLING COUNTER STRIKE SERVERS!! [email protected]

Website: https://namanvrati.cf/
Cheap Rates/ Renting also available.
Introducing myself: This is Naman Vrati, call me NamVr! I am a web developer and Counter Strike Server Manager, I own a server.

Piano Is My Life
allroundernaman is offline
4ever16
Veteran Member
Join Date: Apr 2015
Old 07-15-2020 , 14:10   Re: Auto Kick
Reply With Quote #27

It doesnt work on listen server or if u have admin.
4ever16 is offline
allroundernaman
Member
Join Date: May 2020
Location: Somewhere Virtual
Old 07-18-2020 , 08:20   Re: Auto Kick
Reply With Quote #28

Quote:
Originally Posted by 4ever16 View Post
It doesnt work on listen server or if u have admin.
Full explaination here:
https://forums.alliedmods.net/showthread.php?p=2710578
__________________
SELLING COUNTER STRIKE SERVERS!! [email protected]

Website: https://namanvrati.cf/
Cheap Rates/ Renting also available.
Introducing myself: This is Naman Vrati, call me NamVr! I am a web developer and Counter Strike Server Manager, I own a server.

Piano Is My Life
allroundernaman is offline
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 07:38.


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