AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Spectator Switch (https://forums.alliedmods.net/showthread.php?t=219875)

HSFighter 07-04-2013 04:10

[ANY] Spectator Switch
 
2 Attachment(s)
Spectator Switch 1.1.1

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

This Plugin allows player to move himself to spector by type "!afk" in the chat. :bee:
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 :wink:

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

Blacksilver 07-04-2013 05:55

Re: [ANY] Spectator Switch
 
YOu could add a delay.
Furthermore it could set by ConVar.

micazoid 07-04-2013 06:29

Re: [ANY] Spectator Switch
 
This is _EXACTLY_ what I am looking for since I got rid of advanced commands and using another Teambalancing-plugin!!!!! :bacon!::bacon!::bacon!::bacon!::bacon!::baco n!::bacon!::bacon!:

That is AWESOME!!!! Thank you !!! Danke !!! Merci !!! Arigato !!! :):):)

RedSword 07-05-2013 03:46

Re: [ANY] Spectator Switch
 
Quote:

Originally Posted by micazoid (Post 1983087)
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

HSFighter 07-05-2013 12:11

Re: [ANY] Spectator Switch
 
Quote:

Originally Posted by RedSword (Post 1983664)
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 ^^

pubhero 07-09-2013 01:26

Re: [ANY] Spectator Switch
 
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. :D

utaker 05-16-2014 11:02

Re: [ANY] Spectator Switch
 
/sm_admin = admin menu support please?

wtfaatp 05-16-2014 11:26

Re: [ANY] Spectator Switch
 
Quote:

Originally Posted by utaker (Post 2138591)
/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:"
                        }
                }
}


utaker 05-16-2014 15:32

Re: [ANY] Spectator Switch
 
Quote:

Originally Posted by wtfaatp (Post 2138602)
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

skinheadxtreme 04-20-2015 15:04

Re: [ANY] Spectator Switch
 
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()


All times are GMT -4. The time now is 03:58.

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