Raised This Month: $319 Target: $400
 79%   Almost there!

[CS:GO/CS:S] Admin Stealth


Post New Thread Reply   
 
Thread Tools Display Modes
Author
potatoz
AlliedModders Donor
Join Date: Nov 2016
Plugin ID:
5554
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Simple plugin to allow admins to hide themselves from scoreboard
    Old 02-28-2017 , 11:32   [CS:GO/CS:S] Admin Stealth
    Reply With Quote #1

    ADMIN STEALTH
    as made by potatoz



    DESCRIPTION
    There are often players find it funny to freekill, teamkill, hack etc and as fast as an admin joins spectators, they act nice and tidy. That's what this plugin aims to solve. What the plugin does is allow admins with root to go into "Stealth Mode", this would move the admin in to the spectator team (without any messages in chat) and make this admin fully invisible from the scoreboard. If admin changes team however this Stealth is automatically removed to make sure admins don't forget to turn it off, otherwise the stealth command is a toggle (on/off).

    COMMANDS
    !stealth - Toggle Stealth Mode (ADMFLAG_ROOT)

    CVARS
    sm_stealth_autoswitch - Automatically switch admins to spectators on Stealth? Default = 1
    sm_stealth_disable_switch - Disable Stealth Mode on switch to other team? (Only really applies if autoswitch is enabled) Default 1

    NOTE
    The above ConVars are easily changed in <gamefolder>/cfg/sourcemod/simple_stealth.txt (This file is auto-generated on first launch)
    Attached Files
    File Type: sp Get Plugin or Get Source (stealth.sp - 4734 views - 4.5 KB)

    Last edited by potatoz; 08-17-2018 at 07:10.
    potatoz is offline
    potatoz
    AlliedModders Donor
    Join Date: Nov 2016
    Old 02-28-2017 , 11:34   Re: [CS:GO/CS:S] Simple Stealth v1
    Reply With Quote #2

    Side-Note: I am aware "Admin Stealth" already exist, but i find the plugin to have to many unnecessary functions and has become less stealthy because of all these flashy features
    __________________
    potatoz is offline
    Nachtfrische
    Member
    Join Date: Aug 2015
    Location: Dream Community
    Old 02-28-2017 , 16:06   Re: [CS:GO/CS:S] Simple Stealth v1
    Reply With Quote #3

    Quote:
    Originally Posted by potatoz View Post
    Side-Note: I am aware "Admin Stealth" already exist, but i find the plugin to have to many unnecessary functions and has become less stealthy because of all these flashy features
    Moreover, the already existing plugin isn't even working very well, you're constantly being sent back to the team selection on the old one and therefore it's completly useless.
    I'm looking forward to try yours


    EDIT: You're saying:
    Quote:
    Originally Posted by potatoz View Post
    this would move the admin in to the spectator team (without any messages in chat)
    That's not the case, it's still saying that I joined the spectators in the chat.
    Could you fix that?

    Last edited by Nachtfrische; 02-28-2017 at 17:23.
    Nachtfrische is offline
    wolvez04
    Senior Member
    Join Date: Feb 2016
    Location: Andora
    Old 02-28-2017 , 18:07   Re: [CS:GO/CS:S] Simple Stealth v1
    Reply With Quote #4

    Yes the old is quite buggy and I ended up disabling it. With this new one ill happily put it on all my servers. Thanks for the release!
    wolvez04 is offline
    potatoz
    AlliedModders Donor
    Join Date: Nov 2016
    Old 03-01-2017 , 10:44   Re: [CS:GO/CS:S] Simple Stealth v1
    Reply With Quote #5

    Update: (hopefully) fixed hiding team-changes in a better way
    __________________
    potatoz is offline
    Papero
    Veteran Member
    Join Date: Aug 2016
    Location: Rimini, Italy
    Old 03-06-2017 , 14:41   Re: [CS:GO/CS:S] Simple Stealth v1
    Reply With Quote #6

    It gives a lot of warnings like:
    Code:
    FindSendPropOffs is marked as depreacated: Use FindSendPropInfo instead
    I saw that just replacing it compiles fine (but I didn't test it in-game) btw you should fix it!

    Why do you need to do this:
    PHP Code:
    char sName[MAX_NAME_LENGTH];    
    GetClientName(clientsNamesizeof(sName)); 
    __________________
    My Plugins
    SPCode


    Steam: hexer504
    Telegram: Hexah
    Discord: Hexah#6903

    If you like my work you can donate here!

    Last edited by Papero; 03-06-2017 at 15:06.
    Papero is offline
    potatoz
    AlliedModders Donor
    Join Date: Nov 2016
    Old 03-08-2017 , 05:41   Re: [CS:GO/CS:S] Simple Stealth v1
    Reply With Quote #7

    Quote:
    Originally Posted by Papero View Post
    It gives a lot of warnings like:
    Code:
    FindSendPropOffs is marked as depreacated: Use FindSendPropInfo instead
    I saw that just replacing it compiles fine (but I didn't test it in-game) btw you should fix it!

    Why do you need to do this:
    PHP Code:
    char sName[MAX_NAME_LENGTH];    
    GetClientName(clientsNamesizeof(sName)); 
    I took a second look with the feedback you gave, i've changed FindSendPropOffs to FindSendPropInfo, used it in the first place cause that's the way i got it learned a while ago so i suppose it has changed in later updates so it should work better now either way (Has tested on my own server, seems to work just fine). "sName" has been removed aswell, i used it before for other features that didn't turn out how i wished to i prob forgot to get rid of it.

    Thanks for the feedback
    __________________

    Last edited by potatoz; 03-08-2017 at 05:41.
    potatoz is offline
    lay295
    Senior Member
    Join Date: Sep 2013
    Old 04-22-2017 , 20:26   Re: [CS:GO/CS:S] Simple Stealth v1
    Reply With Quote #8

    Small change that I think you should make, I was curious whether this stopped the spectator window some hacks have, and in it's current state it doesn't. I checked AimTux and it seems like it just reads m_hObserverTarget, so if you hook SetTransmit when the admin is in stealth it won't show on their spectator menu anymore
    Attached Files
    File Type: sp Get Plugin or Get Source (stealth.sp - 1180 views - 4.2 KB)
    __________________


    Last edited by lay295; 04-27-2017 at 05:26. Reason: removed root flag, forgot to change back
    lay295 is offline
    Chrahb
    Senior Member
    Join Date: Jan 2017
    Location: Somewhere in Denmark!
    Old 04-23-2017 , 08:59   Re: [CS:GO/CS:S] Simple Stealth v1
    Reply With Quote #9

    Now using on all my servers
    The only problem now is i have !admins,
    to see online admins.
    The one i'm using is: Admin List 1.2 by Fredd,
    is there a way to hide admins from that?
    __________________
    Chrahb is offline
    Chrahb
    Senior Member
    Join Date: Jan 2017
    Location: Somewhere in Denmark!
    Old 04-23-2017 , 17:20   Re: [CS:GO/CS:S] Simple Stealth v1
    Reply With Quote #10

    A "little" bug: if you join spectator, and type !stealth, and then join one of the teams.
    You will then be invisible to players, and spectators that spectate you.
    __________________
    Chrahb 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 11:42.


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