AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [SNIPPET CSS] Auto Choose Team Snippet (https://forums.alliedmods.net/showthread.php?t=175272)

Mitchell 01-02-2012 00:31

[SNIPPET CSS] Auto Choose Team Snippet
 
After looking back at my old codes and seeing that this has not been litterally used before..

PHP Code:

public OnPluginStart( )
{
    
RegConsoleCmd("joingame"JOINgAME);
    
RegConsoleCmd("jointeam"JOINgAME);
}
public 
Action:JOINgAME(clientargs)
{
    if (
GetUserFlagBits(client)) { CS_SwitchTeam(client3); }
    else { 
CS_SwitchTeam(client2); }
    
CS_RespawnPlayer(client);
    return 
Plugin_Handled;


i guess it could be written into TF2. BUt anyways what it does is finds if the player has Admin flags, then simply sets them to CT team. I made this long ago just thought it might help out some plugin ideas or something.


All times are GMT -4. The time now is 18:28.

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