Raised This Month: $32 Target: $400
 8% 

[ANY] Spectator Switch


Post New Thread Reply   
 
Thread Tools Display Modes
Author
HSFighter
Veteran Member
Join Date: Aug 2007
Location: Flensburg - Germany
Plugin ID:
3723
Plugin Version:
1.1.1
Plugin Category:
Gameplay
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    97 
    Plugin Description:
    Allows player to move himself to spector.
    Old 07-04-2013 , 04:10   [ANY] Spectator Switch
    Reply With Quote #1

    Spectator Switch 1.1.1

    --------------------------------
    REQUIREMENTS:
    --------------------------------
    Description:

    This Plugin allows player to move himself to spector by type "!afk" in the chat.
    Also an Admin can move other player to spectator.

    This plugin is very usefull for DM-Servers.
    I wondered that as yet no has make a similar plugin, or i have not seen it

    Admin need ADMFLAG_KICK to switch other players
    --------------------------------
    CVARS:
    • sm_spec_version
      • Show Plugin Version
    • sm_spec_enable
      • Enable/Disable Plugin
      • Default: "1"
    --------------------------------

    Console Commands:
    • sm_spec <target>
      • Move target to spectator
    • sm_afk
      • Move himself to spectaor
    --------------------------------
    Say Commands:
    • !afk
      • Move himself to spectaor
    --------------------------------
    Changelog:
    • 1.0.0
      • Release
    • 1.1.0
      • Code optimations
      • Add updater-plugin support
    • 1.1.1 (04.12.2014)
      • Fix problem with pluginversion for updater plugin
    Attached Files
    File Type: smx spectatorswitch.smx (5.2 KB, 1910 views)
    File Type: sp Get Plugin or Get Source (spectatorswitch.sp - 1823 views - 3.7 KB)
    __________________



    Sorry for my very bad english
    Greetings HSFighter

    Last edited by HSFighter; 01-03-2014 at 18:36.
    HSFighter is offline
    Send a message via ICQ to HSFighter
    Blacksilver
    Member
    Join Date: Aug 2011
    Location: G E R M A N Y
    Old 07-04-2013 , 05:55   Re: [ANY] Spectator Switch
    Reply With Quote #2

    YOu could add a delay.
    Furthermore it could set by ConVar.
    __________________
    Come to the dark side, we have cookies *muhaha*
    Visit us!

    Blacksilver is offline
    micazoid
    Veteran Member
    Join Date: Oct 2010
    Location: Munich - Germany
    Old 07-04-2013 , 06:29   Re: [ANY] Spectator Switch
    Reply With Quote #3

    This is _EXACTLY_ what I am looking for since I got rid of advanced commands and using another Teambalancing-plugin!!!!! :baco n!:

    That is AWESOME!!!! Thank you !!! Danke !!! Merci !!! Arigato !!!
    __________________
    micazoid is offline
    RedSword
    SourceMod Plugin Approver
    Join Date: Mar 2006
    Location: Quebec, Canada
    Old 07-05-2013 , 03:46   Re: [ANY] Spectator Switch
    Reply With Quote #4

    Quote:
    Originally Posted by micazoid View Post
    This is _EXACTLY_ what I am looking for since I got rid of advanced commands and using another Teambalancing-plugin!!!!! [...]
    Nuooooooooooooooooooooooooo

    Quote:
    RegConsoleCmd("sm_afk", Move, "Move you self to spectator", FCVAR_PLUGIN);
    o.o I really don't think you want to put that flag; thought I don't think it's dangerous...

    The description in the api@GetCommandFlags makes me believe you can really put FCVAR_* flags there. Any reason in particular ?

    Also, you might want to remove FCVAR_REPLICATED of your version ConVar, as it can produce error in the client's console (no real need to update; but I'd change that if you ever update your plugin again; for this and your other smoke plugin).

    Beside that plugin is simple and seems good, approved.

    Red
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work
    RedSword is offline
    HSFighter
    Veteran Member
    Join Date: Aug 2007
    Location: Flensburg - Germany
    Old 07-05-2013 , 12:11   Re: [ANY] Spectator Switch
    Reply With Quote #5

    Quote:
    Originally Posted by RedSword View Post
    Also, you might want to remove FCVAR_REPLICATED of your version ConVar, as it can produce error in the client's console (no real need to update; but I'd change that if you ever update your plugin again; for this and your other smoke plugin).

    Beside that plugin is simple and seems good, approved.

    Red
    Thank You Red ;D

    Will be done here in the next update and tommorow for the smoke plugin.


    @Blacksilver:

    Youre request will be add to the next update with countdown ^^
    __________________



    Sorry for my very bad english
    Greetings HSFighter

    Last edited by HSFighter; 07-05-2013 at 12:12.
    HSFighter is offline
    Send a message via ICQ to HSFighter
    pubhero
    Veteran Member
    Join Date: Aug 2012
    Location: Central Europe
    Old 07-09-2013 , 01:26   Re: [ANY] Spectator Switch
    Reply With Quote #6

    Hi.
    First. Thanks for your good work. Can you add "the move to the spectator option" for the admin menu? (player settings/afk move to spectator/player name from the list, or something similar)
    And can you add a security option for this plugin? A player can use the !afk , /afk , sm_afk command only one times / 30 seconds?
    Why? Too many idiot hacker presents on the servers.

    Last edited by pubhero; 07-09-2013 at 01:30.
    pubhero is offline
    utaker
    Senior Member
    Join Date: Dec 2013
    Old 05-16-2014 , 11:02   Re: [ANY] Spectator Switch
    Reply With Quote #7

    /sm_admin = admin menu support please?
    utaker is offline
    wtfaatp
    Senior Member
    Join Date: Jul 2010
    Old 05-16-2014 , 11:26   Re: [ANY] Spectator Switch
    Reply With Quote #8

    Quote:
    Originally Posted by utaker View Post
    /sm_admin = admin menu support please?
    addons/sourcemod/configs/adminmenu_custom.txt

    Code:
    // Custom admin menu commands.
    // For more information:
    //
    // http://wiki.alliedmods.net/Custom_Admin_Menu_%28SourceMod%29
    //
    // Note: This file must be in Valve KeyValues format (no multiline comments)
    //
    
    "Commands"
    {
    	"Team Management"
    	{
    		"Move Player to Spectate"
    		{
    			"cmd"		"sm_spec #1"
    			"1"
    			{
    				"type" 		"player"
    				"title"		"Player:"
    			}
    		}
    }
    __________________
    SourceMod : 1.10.0 (Official) | MetaMod : 1.10.7 (Official)
    Server : NFOservers - Windows
    wtfaatp is offline
    utaker
    Senior Member
    Join Date: Dec 2013
    Old 05-16-2014 , 15:32   Re: [ANY] Spectator Switch
    Reply With Quote #9

    Quote:
    Originally Posted by wtfaatp View Post
    addons/sourcemod/configs/adminmenu_custom.txt

    Code:
    // Custom admin menu commands.
    // For more information:
    //
    // http://wiki.alliedmods.net/Custom_Admin_Menu_%28SourceMod%29
    //
    // Note: This file must be in Valve KeyValues format (no multiline comments)
    //
    
    "Commands"
    {
    	"Team Management"
    	{
    		"Move Player to Spectate"
    		{
    			"cmd"		"sm_spec #1"
    			"1"
    			{
    				"type" 		"player"
    				"title"		"Player:"
    			}
    		}
    }
    Wow, thankyou
    utaker is offline
    skinheadxtreme
    AlliedModders Donor
    Join Date: Jul 2013
    Old 04-20-2015 , 15:04   Re: [ANY] Spectator Switch
    Reply With Quote #10

    L 04/20/2015 - 17:14:19: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 04/20/2015 - 17:14:19: [SM] Native "ReplyToCommand" reported: Language phrase "No matching client" not found
    L 04/20/2015 - 17:14:19: [SM] Displaying call stack trace for plugin "spectatorswitch.smx":
    L 04/20/2015 - 17:14:19: [SM] [0] Line 103, G:\Dropbox\Gameserver\SM Scripting\include\commandfilters.inc::ReplyTo TargetError()
    L 04/20/2015 - 17:14:19: [SM] [1] Line 198, G:\Dropbox\Gameserver\SM Scripting\include\helpers.inc::FindTarget()
    L 04/20/2015 - 17:14:19: [SM] [2] Line 95, G:\Dropbox\Gameserver\SM Scripting\spectatorswitch.sp::Command_Move()
    skinheadxtreme is offline
    Reply


    Thread Tools
    Display Modes

    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 00:29.


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