Raised This Month: $ Target: $400
 0% 

[TF2] Ban player you are spectating


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FlyveHest
Member
Join Date: Nov 2010
Location: Denmark
Old 03-17-2012 , 12:44   [TF2] Ban player you are spectating
Reply With Quote #1

We've had some trouble banning players who change their name often (but not enough to trigger the namechangebanner plugin), and I was wondering if its possible to make a plugin that allows you to ban the player you are following/spectating in the in-game spec mode?

Not via a plugin like Simple Spectate, but the built-in where you can jump between players using mouseclicks.
__________________
FlyveHest
-
GB.CritVote - Let people vote to en/disable random crits each round

Visit Gladblad Gamers
FlyveHest is offline
Smarmy
Senior Member
Join Date: Mar 2012
Old 03-18-2012 , 05:22   Re: [TF2] Ban player you are spectating
Reply With Quote #2

You can already do this with sm_ban @aim

Also, if they are blocking status output by spamming the status command, issue sm_who. Find the identical SteamIDs, write them down and then wait a few moments. Issue sm_who again and find the SteamID that is the same one from the two before but has a different name.
Smarmy is offline
FlyveHest
Member
Join Date: Nov 2010
Location: Denmark
Old 03-18-2012 , 07:01   Re: [TF2] Ban player you are spectating
Reply With Quote #3

I've tried using the @aim, and it works .. somewhat, but it is a very hit and miss when spectating.

19 out of 20 I got "No target found" when doing an sm_who @aim while spectating a player, both from "inside the head" and from 3rd person.

Is it possible to extract the player you are actively following somehow? That would make it 100% foolproof.
__________________
FlyveHest
-
GB.CritVote - Let people vote to en/disable random crits each round

Visit Gladblad Gamers
FlyveHest is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 03-18-2012 , 07:29   Re: [TF2] Ban player you are spectating
Reply With Quote #4

Because i've seen you are a coder yourself, i just post a snippet.
One of the stocks is from SMlib.

Spoiler


Yours sincerely
Impact
__________________

Last edited by Impact123; 03-18-2012 at 07:30.
Impact123 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-18-2012 , 08:18   Re: [TF2] Ban player you are spectating
Reply With Quote #5

in console
status

Look player #userid

sm_ban "#userid" time reason

or
sm_ban "#STEAM_0:1:1xxx" time reason
Bacardi is offline
FlyveHest
Member
Join Date: Nov 2010
Location: Denmark
Old 03-18-2012 , 11:19   Re: [TF2] Ban player you are spectating
Reply With Quote #6

Quote:
Originally Posted by Impact123 View Post
Because i've seen you are a coder yourself, i just post a snippet.
One of the stocks is from SMlib.
Exactly what the doctor ordered, thanks a lot Impact, did a small plug, and it works like a charm.
__________________
FlyveHest
-
GB.CritVote - Let people vote to en/disable random crits each round

Visit Gladblad Gamers
FlyveHest 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 09:06.


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