Raised This Month: $75 Target: $400
 18% 

SM ForceCamera


Post New Thread Reply   
 
Thread Tools Display Modes
Author
KawMAN
SourceMod Donor
Join Date: Sep 2007
Location: Cracov
Plugin ID:
2265
Plugin Version:
1.0
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    mp_forcecamera 0 for admin
    Unapprover:
    Reason for Unapproving:
    OP unsupported - take over possible
    Old 03-07-2011 , 11:37   SM ForceCamera
    Reply With Quote #1

    This plugin allow dead admins and users in selected groups to observe all players on the server when other users can only observe teammates (like mp_forcecamera 1).

    Also this plugin have nice side effect, killcam (or freeze cam) is working for all.
    (with mp_forcecamera killcam works only when TK).


    Installation:
    Copy smforcecam.smx file to sourcemod plugins folder,change map or restart server.
    Plugin don't have own config file so if you want to change defaults put cvars to server.cfg or sourcemod.cfg

    Cvars:
    sm_forcecamera - 1 - Enable Plugin, 0 - Disable (default: 1)
    sm_forcecamera_flag - admin flag that Allow to observe players in other team (default: a)
    sm_forcecamera_groups - List of groups that allow to observe players in other team, (default: "Full Admins" , groups must be separated by comma).
    sm_forcecam_ver - SM Forcecamera version

    This plugin will force mp_forcecamera to 0 when enabled.
    Tested only with CS:S

    ToDo:
    - Find out a way to hide enemy on radar.
    Attached Files
    File Type: sp Get Plugin or Get Source (smforcecam.sp - 1720 views - 13.2 KB)
    __________________

    Last edited by KawMAN; 04-30-2011 at 05:12.
    KawMAN is offline
    Send a message via ICQ to KawMAN Send a message via Skype™ to KawMAN
    Salakis.
    Junior Member
    Join Date: Feb 2011
    Location: Russia
    Old 03-08-2011 , 02:44   Re: SM ForceCamera
    Reply With Quote #2

    Thanks for a plugin, it that I search.
    Problem: I have server with value mp_forcecamera 1. After installing this plugin except admins can observe all players.
    Cvar sm_forcecamera_groups left default. It requires a change but I will not understand what. Help me.

    Code:
    plugin_print
    10:41:55 Loaded plugins:
             ---------------------
             0:<TAB>"Metamod:Source 1.8.5-dev"
             1:<TAB>"Mattie's EventScripts, http://www.eventscripts.com, Version:2.1.1.338"
             ---------------------
    Code:
    10:42:00 meta list
    10:42:00 Listing 5 plugins:
               [01] DoS Protect (1.0.0.1) by ZombieX2.net
               [02] SourceMod (1.3.6) by AlliedModders LLC
               [03] CS:S Tools (1.3.6) by AlliedModders LLC
               [04] BinTools (1.3.6) by AlliedModders LLC
               [05] SDK Tools (1.3.6) by AlliedModders LLC
    Code:
    10:42:05 sm plugins list
    10:42:05 [SM] Listing 46 plugins:
               01 "Player Commands" (1.3.6) by AlliedModders LLC
               02 "Admin Menu" (1.3.6) by AlliedModders LLC
               03 "PermaMute" (0.1) by Ryan "FLOOR_MASTER" Mannion
               04 "Weapon Restrict" (2.3.4) by Dr!fter
               05 "TeamSwitch" (1.3) by MistaGee
               06 "Sound Commands" (1.3.6) by AlliedModders LLC
               07 "Map configs" (1.1.1) by Berni
               08 "SuperLogs: CSS" (1.2.4) by psychonic
               09 "Print" (1.1) by Matheus28
               10 "MapChooser" (1.2.1) by AlliedModders LLC
               11 "KillStats" (1.1) by Deception5
               12 "Anti-Rejoin" (2.0.0) by exvel
               13 "PrivateMenuSay" (1.0) by Jannik 'Peace-Maker' Hartung
               14 "Team Bets" (2.6) by GrimReaper - Original by ferret
               15 "Nextmap" (1.3.6) by AlliedModders LLC
               16 "Map Nominations" (1.3.6) by AlliedModders LLC
               17 "WatchList" (1.1.0) by Dmustanger
               18 "Client Preferences" (1.3.6) by AlliedModders LLC
               19 "PlayersList" (0.3) by O!KAK
               20 "HLstatsX CE Ingame Plugin" (1.6.11) by psychonic
               21 "Admin File Reader" (1.3.6) by AlliedModders LLC
               22 "Observe Client" (1.2.3) by WhiteWolf, puopjik, psychonic
               23 "Sourcebans Checker" (1.0.0) by psychonic & Ca$h Munny
               24 "Basic Commands" (1.3.6) by AlliedModders LLC
               25 "Show Players" (1.1.0) by AnIHiL
               26 "Basic Chat" (1.3.6) by AlliedModders LLC
               27 "Auto Name Changer" (3.0) by MoggieX
               28 "Anti-Flood" (1.3.6) by AlliedModders LLC
               29 "SM Super Commands" (0.51) by pRED*
               30 "Top 10 hlstats ce announcer" (1.03) by Snelvuur
               31 "Too Late To Ban" (1.0.0a) by Shenton
               32 "Very Basic High Ping Kicker" (1.4) by msleeper
               33 "Advertisements" (0.5.5) by Tsunami
               34 "Reserved Slots" (1.3.6) by AlliedModders LLC
               35 "SM Forcecamera" (1.0) by KawMAN
               36 "Basic Votes" (1.3.6) by AlliedModders LLC
               37 "SourceBans" (1.4.7) by InterWave Studios Development Team
               38 "AFK Manager" (3.3.0) by Rothgar
               39 "Basic Info Triggers" (1.3.6) by AlliedModders LLC
               40 "Admin loggin" (1.0) by vIr-Dan
               41 "Plugin Manager" (1.1.0) by R-Hehl
               42 "Custom Votes" (0.5.6) by chundo
               43 "Spectator List" (1.1.2) by GoD-Tony
               44 "Basic Comm Control" (1.3.6) by AlliedModders LLC
               45 "Bounty" (1.2.1) by Dr!fter
               46 "Admin Help" (1.3.6) by AlliedModders LLC
    __________________
    Sorry for my bad English

    Last edited by Salakis.; 03-08-2011 at 02:48.
    Salakis. is offline
    Send a message via ICQ to Salakis.
    KawMAN
    SourceMod Donor
    Join Date: Sep 2007
    Location: Cracov
    Old 03-08-2011 , 05:11   Re: SM ForceCamera
    Reply With Quote #3

    You wanna to block admins to see other players too ?
    You only wanna killcam effect ?

    If so set sm_forcecamera_flag to "" and sm_forcecamera_groups to "" .
    __________________
    KawMAN is offline
    Send a message via ICQ to KawMAN Send a message via Skype™ to KawMAN
    Salakis.
    Junior Member
    Join Date: Feb 2011
    Location: Russia
    Old 03-08-2011 , 05:59   Re: SM ForceCamera
    Reply With Quote #4

    Quote:
    Originally Posted by KawMAN View Post
    You wanna to block admins to see other players too ?
    You only wanna killcam effect ?
    No. I want
    Quote:
    This plugin allow dead admins <skip> to observe all players on the server when other users can only observe teammates (like mp_forcecamera 1).
    problem in that dead players also observe all of players(or: but dead players as well as admins can observe all players).
    __________________
    Sorry for my bad English
    Salakis. is offline
    Send a message via ICQ to Salakis.
    XaxaXoxo
    Senior Member
    Join Date: Feb 2011
    Old 03-09-2011 , 16:33   Re: SM ForceCamera
    Reply With Quote #5

    Quote:
    L 03/09/2011 - 22:531: [SM] Displaying call stack trace for plugin "smforcecam.smx":
    L 03/09/2011 - 22:531: [SM] [0] Line 361, smforcecam.sp::NextPrevClient()
    L 03/09/2011 - 22:531: [SM] [1] Line 248, smforcecam.sp::Cmd_spec_next()
    L 03/09/2011 - 22:54:16: [SM] Native "IsClientConnected" reported: Client index 25 is invalid
    L 03/09/2011 - 22:54:16: [SM] Displaying call stack trace for plugin "smforcecam.smx":
    L 03/09/2011 - 22:54:16: [SM] [0] Line 361, smforcecam.sp::NextPrevClient()
    L 03/09/2011 - 22:54:16: [SM] [1] Line 319, smforcecam.sp:elayedCheckDeath()
    L 03/09/2011 - 22:54:16: [SM] Native "IsClientConnected" reported: Client index 25 is invalid
    XaxaXoxo is offline
    Salakis.
    Junior Member
    Join Date: Feb 2011
    Location: Russia
    Old 04-21-2011 , 16:39   Re: SM ForceCamera
    Reply With Quote #6

    too much in logs
    Quote:
    L 04/21/2011 - 23:56:29: [SM] Native "IsClientConnected" reported: Client index 0 is invalid
    L 04/21/2011 - 23:56:29: [SM] Displaying call stack trace for plugin "smforcecam.smx":
    L 04/21/2011 - 23:56:29: [SM] [0] Line 361, /home/groups/alliedmodders/forums/files/3/1/1/2/4/83328.attach::NextPrevClient()
    L 04/21/2011 - 23:56:29: [SM] [1] Line 275, /home/groups/alliedmodders/forums/files/3/1/1/2/4/83328.attach::Cmd_spec_prev()
    __________________
    Sorry for my bad English
    Salakis. is offline
    Send a message via ICQ to Salakis.
    rsg
    Member
    Join Date: Apr 2011
    Old 04-24-2011 , 18:37   Re: SM ForceCamera
    Reply With Quote #7

    please fix this errors!!!
    rsg is offline
    Send a message via Skype™ to rsg
    michcio
    Junior Member
    Join Date: Aug 2010
    Old 05-11-2011 , 09:00   Re: SM ForceCamera
    Reply With Quote #8

    works great for me ! Thanks for this!
    michcio is offline
    Arcy
    Senior Member
    Join Date: Feb 2010
    Location: Wroclaw, Poland
    Old 05-11-2011 , 09:28   Re: SM ForceCamera
    Reply With Quote #9

    Why do You want to hide enemies on the radar? If a guy is allowed to see both teams, he can as well see their locations on the radar.

    wonderful plugin, was looking for it so badly!

    btw. Now I see what You mean, yup that's a pain when every player can see the position of the enemy on the radar.
    __________________


    Last edited by Arcy; 05-11-2011 at 09:58.
    Arcy is offline
    rsg
    Member
    Join Date: Apr 2011
    Old 07-12-2011 , 07:44   Re: SM ForceCamera
    Reply With Quote #10

    error log:
    Quote:
    L 07/10/2011 - 00:285: [SM] Native "IsClientConnected" reported: Client index 0 is invalid
    L 07/10/2011 - 00:285: [SM] Displaying call stack trace for plugin "smforcecam.smx":
    L 07/10/2011 - 00:285: [SM] [0] Line 361, C:\Users\Serhiy\Desktop\scripting\smforcecam. sp::NextPrevClient()
    L 07/10/2011 - 00:285: [SM] [1] Line 275, C:\Users\Serhiy\Desktop\scripting\smforcecam. sp::Cmd_spec_prev()
    anybody fix this plugin

    problem in plugin:
    Quote:
    NextPrevClient(client, bool:Next = true,Team = -1, bool:Alive = true)
    {
    if(client <=0 ) client = 1 ;
    if(client > MaxClients ) client = MaxClients ;
    new i = client;

    if(Next) i++;
    else i--;

    for(; ; )
    {
    if(IsClientConnected(i) && IsClientInGame(i) )
    {
    if(!Alive || ( Alive && IsPlayerAlive(i)) )
    {
    if(Team == -1)
    {
    break;
    }
    new Team2 = GetClientTeam(i);
    if(Team == Team2)
    {
    break;
    }
    }
    }

    if(i == MaxClients && Next) i = 0;
    if(i == 1 && !Next) i = MaxClients;

    if(i == client) return -1; // No clients
    if(Next) i++;
    else i--;
    }
    return i;
    }
    rsg is offline
    Send a message via Skype™ to rsg
    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 23:27.


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