Raised This Month: $ Target: $400
 0% 

team Player is Spectator


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sutar
Senior Member
Join Date: Sep 2010
Old 02-19-2013 , 13:50   team Player is Spectator
Reply With Quote #1

How to make it so that when a player is entering the server and he was in command of Spectator?

Here's the script:
HTML Code:
#include <amxmodx>
#include <cstrike>

public plugin_init()
	register_plugin("test", "0.0", "Author")

public client_putinserver(id)
{
	engclient_cmd(id, "jointeam", "6")
	engclient_cmd(id, "specmode", "1")
	engclient_cmd(id, "chooseteam", "1")
}
But the problem is this:
1. No first MOTD window.
2. No window to select the class (and should not open it)
How to do it right?

Last edited by Sutar; 02-19-2013 at 13:51.
Sutar is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 02-19-2013 , 13:57   Re: team Player is Spectator
Reply With Quote #2

you should use the cstrike module & use cs_set_user_team() on Spawn.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Torge
Veteran Member
Join Date: Oct 2011
Old 02-19-2013 , 14:19   Re: team Player is Spectator
Reply With Quote #3

Not sure whether this can work directly.

To be safe, you could use a task!
Torge is offline
Sutar
Senior Member
Join Date: Sep 2010
Old 02-19-2013 , 15:39   Re: team Player is Spectator
Reply With Quote #4

Quote:
you should use the cstrike module & use cs_set_user_team() on Spawn.
Tried. Does not work ...

Code:
public client_putinserver(id)
	cs_set_user_team(id, CS_TEAM_SPECTATOR)
Quote:
Not sure whether this can work directly.

To be safe, you could use a task!
You can read more?

Last edited by Sutar; 02-19-2013 at 15:42.
Sutar is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-19-2013 , 22:23   Re: team Player is Spectator
Reply With Quote #5

Team Join Management by Exolent
__________________
fysiks 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 21:46.


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