AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Force user to join team automatically (https://forums.alliedmods.net/showthread.php?t=156390)

epix 05-05-2011 19:18

Force user to join team automatically
 
I'm looking for a way to let a user join a team automatically.
I tried something like this:

PHP Code:

public client_putinserver(id) {
    
cs_set_user_team(idCS_TEAM_TCS_T_TERROR)


but it doesn't seem to do anything..

fysiks 05-05-2011 21:02

Re: Force user to join team automatically
 
Find a plugin that already does it and see how it's done there.

SonicSonedit 05-06-2011 06:58

Re: Force user to join team automatically
 
Team Join Management by Exolent

epix 05-06-2011 12:52

Re: Force user to join team automatically
 
Quote:

Originally Posted by SonicSonedit (Post 1464174)

Thanks, was just looking into that plugin myself. I'm now looking how I can integrate this in my own plugin. Might need more help later. Thanks anyway for now :)


All times are GMT -4. The time now is 04:22.

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