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

Admin Stealth


Post New Thread Reply   
 
Thread Tools Display Modes
Cain
SourceMod Donor
Join Date: May 2005
Location: South Carolina, USA
Old 09-11-2012 , 07:09   Re: Admin Stealth
Reply With Quote #11

So you have to have Cheats allowed for this to work??
Cain is offline
necavi
Veteran Member
Join Date: Sep 2010
Old 09-11-2012 , 07:12   Re: Admin Stealth
Reply With Quote #12

Nope.
necavi is offline
341464
Senior Member
Join Date: Dec 2010
Location: GetClientEyePosition
Old 09-11-2012 , 09:42   Re: Admin Stealth
Reply With Quote #13

I know weapon is removed but
Code:
SetEntProp(client,Prop_Send,"m_iTeamNum",4);
In TF2, if player somehow got weapon (like touching the cabinet perhaps?), attempting to shoot, it'll definitely crash the server.
TeamNum 4 stands for Monocolus team num I guess. I kinda forgot.
Edit:
I'll do a little test on my server I guess.
__________________

Last edited by 341464; 09-11-2012 at 09:47.
341464 is offline
Send a message via Skype™ to 341464
341464
Senior Member
Join Date: Dec 2010
Location: GetClientEyePosition
Old 09-11-2012 , 10:21   Re: Admin Stealth
Reply With Quote #14

Okay, nevermind about weapon problem.
But I found out another problem while I was testing, if the round resets and the admin still haven't go back to team before round fully reset, the server will crash upon respawn.
(Tested in TF2)

Btw, I think you should add IsClientInGame check
__________________
341464 is offline
Send a message via Skype™ to 341464
TheHardstyleBro
Senior Member
Join Date: Jun 2012
Location: Netherlands
Old 09-11-2012 , 10:29   Re: Admin Stealth
Reply With Quote #15

Very nice

Quote:
Originally Posted by 341464 View Post
Okay, nevermind about weapon problem.
But I found out another problem while I was testing, if the round resets and the admin still haven't go back to team before round fully reset, the server will crash upon respawn.
(Tested in TF2)

Btw, I think you should add IsClientInGame check
PHP Code:
public OnPluginStart()
{
    
CreateConVar("sm_adminstealth_version"VERSION""FCVAR_PLUGIN|FCVAR_REPLICATED|FCVAR_NOTIFY|FCVAR_DONTRECORD);
    
RegAdminCmd("sm_stealth",Command_Stealth,ADMFLAG_CUSTOM3,"Allows an administrator to toggle complete invisibility on themselves.");
    
AddCommandListener(Command_Status,"status");
    
g_hHostname FindConVar("hostname");
    
HookEvent("round_end"Event_RoundEnd);
}


public 
Event_RoundEnd(Handle:event, const String:name[], bool:dontBroadcast)
{
    for(new 
i;i<=MaxClients;i++)
    {
        if(
g_bIsInvisible[i])
        {
            
InvisOff(i);
        }
    }

__________________

Last edited by TheHardstyleBro; 09-11-2012 at 10:35.
TheHardstyleBro is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 09-11-2012 , 12:24   Re: Admin Stealth
Reply With Quote #16

I just reread first post. You could add :

- Collision off
- Anti-flashbang
- Anti-smoke (I guess its possible with SDKHooks)

For the two lasts, having the choice to have them enabled or not would be preferable.

You should maybe add a section of mods where it was reported to work. Seems to be made exclusively for CS:S, but that dude in TF2 = more like an [ANY] plugin.

Just my thoughts.
__________________
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
Mirandor
Senior Member
Join Date: Jun 2006
Location: Ile de France
Old 09-11-2012 , 12:31   Re: Admin Stealth
Reply With Quote #17

Good job!

But when you change team while you are invisible, the server crash...

CSS linux mm1.9 and sm1.5-dev

Last edited by Mirandor; 09-11-2012 at 13:05.
Mirandor is offline
TheHardstyleBro
Senior Member
Join Date: Jun 2012
Location: Netherlands
Old 09-11-2012 , 13:30   Re: Admin Stealth
Reply With Quote #18

Quote:
Originally Posted by Mirandor View Post
Good job!

But when you change team while you are invisible, the server crash...

CSS linux mm1.9 and sm1.5-dev
Yup, I know. I attached my version
Attached Files
File Type: sp Get Plugin or Get Source (AdminStealth.sp - 361 views - 5.4 KB)
__________________
TheHardstyleBro is offline
MasterOfTheXP
Veteran Member
Join Date: Aug 2011
Location: Cloudbank
Old 09-11-2012 , 14:20   Re: Admin Stealth
Reply With Quote #19

I'd recommend faking the join/leave events instead of printing specific text. If the server has a plugin like Connect Announce, it'll look pretty obvious, no?
__________________
Plugins / My Steam / TF2 Sandbox (plugin beta testing!)
MasterOfTheXP is offline
necavi
Veteran Member
Join Date: Sep 2010
Old 09-11-2012 , 15:55   Re: Admin Stealth
Reply With Quote #20

Some really great recommendations here, I've been working to add all of them (and make SDKHooks an optional dependency).

Until then I'm releasing a bit of a changed version of what TheHardstyleBro released:
v1.2:
- Folded in a few good changes by TheHardstyleBro (including a few crashfix, a log addition and no longer setting certain unnecessary props on spectators
- Fixed a possible crash when a user disconnected
- A few tweaks on TheHardstyleBro's patch
necavi 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 22:03.


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