autojoin teams
Hi all.
have been trying to use cs_set_user_team, Is there some reason why it wont work : client_connect ( id ){ cs_set_user_team(id, 1) } ? It works if the player is on some team allready, but how can i set the team when he/she joins? |
Re: autojoin teams
PHP Code:
|
Re: autojoin teams
With the client_connect forward they are not yet fully into the server.
|
Re: autojoin teams
so that will be:
Code:
public client_putinserver(id){client_putinserver is called after clientconnect, at the same time that 'clientbegin' is called(quake engine), it's around the same time when the client starts to see the motd screen/ choosing of the teams. |
Re: autojoin teams
Ah! thank you...
I was fooling around with client_cme(id, "chooseteam;select 1") for a while there :D |
Re: autojoin teams
Quote:
It can repeatly press the '2' button or whatever the button may be for selecting a team. that's why you should use cs_set_user_team,instead of 'chooseteam'. Unless the plugin isn't meant for counterstrike, then there are other solutions. |
Re: autojoin teams
Ok, taking this one step further...
I can place the players in T or CT as i wish using cs_set_user_team, however hlds thinks they are still in spec/unasigned. ive been trying user_kill, user_silentkill and spawn. This is how i want it: the user connects, he gets the first motdscreen. clicks OK and the team selection menu is NOT shown, he is placed directly in a team. Anyone know how i can accomplish this? |
| All times are GMT -4. The time now is 22:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.