Raised This Month: $ Target: $400
 0% 

[SNIPPET CSS] Auto Choose Team Snippet


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mitchell
~lick~
Join Date: Mar 2010
Old 01-02-2012 , 00:31   [SNIPPET CSS] Auto Choose Team Snippet
Reply With Quote #1

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.
Mitchell 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 18:28.


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