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

Unassigned Kick


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
urMom
Junior Member
Join Date: Aug 2007
Old 08-15-2007 , 19:28   Unassigned Kick
Reply With Quote #1

I'm looking for a simple plugin or script to simply kick players who change teams to unassigned.

I keep having issues on a coop server where players will jointeam 0 to go Unassigned, then start killing other players. Because the server is already assigning players to teams by default, I'd just as soon have it kick them, but I suppose the thing could be configurable in terms of reassigning them, warning, kicking them, or banning them.

I look at SourcePawn but I still need to learn it.

And yes, I'm trying to do this "sans Mattie" ;)
urMom is offline
dalto
Veteran Member
Join Date: Jul 2007
Old 08-15-2007 , 19:51   Re: Unassigned Kick
Reply With Quote #2

You can jointeam 0 and still play?

Hmm...well I don't know how that is possible, but if it is this plugin would stop it.


Enjoy.

Last edited by dalto; 08-17-2007 at 14:22. Reason: Removed the version which causes a server crash
dalto is offline
Hell Phoenix
Senior Member
Join Date: Jan 2005
Old 08-15-2007 , 22:34   Re: Unassigned Kick
Reply With Quote #3

Why not use mp_allowspectators 0 if the mod supports it.
__________________
Hell Phoenix is offline
urMom
Junior Member
Join Date: Aug 2007
Old 08-16-2007 , 01:01   Re: Unassigned Kick
Reply With Quote #4

Thanks for the plugin. It kills my server, though.

I bound a key on my client to "jointeam 0" and though it disconnected me it also kills the engine.

I get an Engine Error box with "NUM_FOR_EDICT: bad pointer" before it proceeds with a crash.

Background: Players will bind a key to "jointeam 0" and then either use a clientside script or just keep hitting it from time to time to keep themselves in Unassigned.

Spectators are team 1, FYI. Thus, not applicable. ;)

Thanks again for looking at it!

Edit: I made sure an sm_kick worked. It does. *shrug*

Last edited by urMom; 08-16-2007 at 01:04.
urMom is offline
dalto
Veteran Member
Join Date: Jul 2007
Old 08-16-2007 , 01:12   Re: Unassigned Kick
Reply With Quote #5

What mod are you running?
dalto is offline
urMom
Junior Member
Join Date: Aug 2007
Old 08-16-2007 , 01:27   Re: Unassigned Kick
Reply With Quote #6

hl2mp
urMom is offline
dalto
Veteran Member
Join Date: Jul 2007
Old 08-16-2007 , 16:27   Re: Unassigned Kick
Reply With Quote #7

I will test it out tonight.
dalto is offline
dalto
Veteran Member
Join Date: Jul 2007
Old 08-17-2007 , 14:21   Re: Unassigned Kick
Reply With Quote #8

OK, after some consulting with our resident sourcemod experts I think I have a working version.

I will test it this evening, but since it is really simple I will share it with you now.

Last edited by dalto; 08-17-2007 at 21:11. Reason: Removed old plugin link
dalto is offline
dalto
Veteran Member
Join Date: Jul 2007
Old 08-17-2007 , 21:11   Re: Unassigned Kick
Reply With Quote #9

This is tested and working.

The final version is here:

http://forums.alliedmods.net/showthread.php?t=59646
dalto is offline
urMom
Junior Member
Join Date: Aug 2007
Old 08-30-2007 , 00:15   Re: Unassigned Kick
Reply With Quote #10

I will try it! Thanks!
urMom 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 16:14.


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