Raised This Month: $51 Target: $400
 12% 

[ANY] Team Switch


Post New Thread Reply   
 
Thread Tools Display Modes
Author
exCeeder.
Junior Member
Join Date: May 2013
Location: .
Plugin ID:
3672
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Switch the team of a player by a command.
    Old 06-01-2013 , 11:28   [ANY] Team Switch
    Reply With Quote #1


    Description:
    When the player type the command in Chat, it switch the team into the written team.

    Commands:
    !t to switch team into team T
    !ct to switch team into team CT
    !spec to switch team into team SPEC

    Installation:
    • Place the TeamSwitch.smx into the directory addons/sourcemod/plugins
    • Place the TeamSwitch.sp into the directory addons/sourcemod/scripting
    Attached Files
    File Type: smx TeamSwitch.smx (8.6 KB, 666 views)
    File Type: sp Get Plugin or Get Source (TeamSwitch.sp - 861 views - 1.4 KB)

    Last edited by exCeeder.; 06-01-2013 at 15:03.
    exCeeder. is offline
    The End Is Near...
    Member
    Join Date: Dec 2012
    Location: Siberia
    Old 06-02-2013 , 08:43   Re: [ANY] Team Switch
    Reply With Quote #2

    PHP Code:
    // For all cmd, change
    public Action:CallBack(clientargs)
    {
        if (
    client 0)
        {
            
    // PLAYER_TEAM - Ct, Tr or Sp
            
    FunctionChangeTeam(clientPLAYER_TEAM);
        }

        return 
    Plugin_Handled;
    }

    stcok FunctionChangeTeam(clientteam)
    {
        if (
    GetClientTeam(client) != team)
        {
            
    ChangeClientTeam(clientteam);
        }

    The End Is Near... 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 16:49.


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