Raised This Month: $ Target: $400
 0% 

[L4D2] Auto Spectate on Client Connect


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Blakeocity
Senior Member
Join Date: Nov 2009
Old 12-30-2009 , 11:58   [L4D2] Auto Spectate on Client Connect
Reply With Quote #1

Hey,

Would someone be able to code a plugin that moves a connected client to the spectator team so they have to press M to join a team and play.

A lot of people put on auto join and walk off or alt tab while they wait and come back to an aggravated, and often dead team.

Secondly, is a L4D2 version of VS Auto Spectate on AFK possible?

Thanks guys.

edit: I had a go at it myself just by using the server command "sm_swapto the players name 1" but ran into the Player is not in-game yet. How can I execute the command when the client is in-game?

PHP Code:
public OnClientConnected(client)
{
    new 
String:name[64]
    
GetClientName(clientnamesizeof(name))
    
ServerCommand("sm_swapto %s 1"name)
    
ServerCommand("sm_cvar vs_max_team_switches 99")


Last edited by Blakeocity; 01-05-2010 at 02:37.
Blakeocity is offline
Blakeocity
Senior Member
Join Date: Nov 2009
Old 01-05-2010 , 02:36   Re: [L4D2] Auto Spectate on Client Connect
Reply With Quote #2

I just found this plugin here. and found that it works perfectly for L4D2.

If someone could still made a plugin that moves people who join to spectators automatically, then it would be appreciated.

Last edited by Blakeocity; 01-05-2010 at 13:42.
Blakeocity is offline
Newf
Senior Member
Join Date: Dec 2009
Old 01-05-2010 , 18:30   Re: [L4D2] Auto Spectate on Client Connect
Reply With Quote #3

Quote:
Originally Posted by Blakeocity View Post
I just found this plugin here. and found that it works perfectly for L4D2.

If someone could still made a plugin that moves people who join to spectators automatically, then it would be appreciated.
i wouldn't mind something like that myself actually. i also just put in that afk manager.
__________________
I like to drink beer and shoot stuff. Video games are fun too i guess!
Newf is offline
eradeejay
Junior Member
Join Date: Mar 2010
Old 03-19-2010 , 17:38   Re: [L4D2] Auto Spectate on Client Connect
Reply With Quote #4

I need a plugin that do this too.
I think is simple, but i dont have knowledge of how to do.

Any help would be appreciated
eradeejay 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 00:48.


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