Jump to content
Message added by Xray,

If you are considering purchasing this please note
support, questions, suggestions etc are being limited

Message added by Xray,

Unmaintained / Out of support

6 Screenshots

  • 65.4k
  • 1.4k
  • 201.82 kB
This area is intended for discussion and questions. Please use the support area for reporting issues or getting help.

Recommended Comments



Bad Land

Posted

hello!!. i have a question/suggestion. after las update facepunch did available use this commands for admins ,
this command only works from server console, adding true or flase.

creative.allUsers - activate creative all players

creative.toggleCreativeModeUser PLAYERNAME o ID64 de steam

creative.freeRepair - no cost repair

creative.freeBuild - build without mats

creative.freePlacement - build without restrictions

creative.unlimitedIO - cable longer and invisible

woul be possible implement this to activate them when toggle admin mode and disable on player mode?

Xray

Posted

18 hours ago, BadLandPVE said:

hello!!. i have a question/suggestion. after las update facepunch did available use this commands for admins ,
this command only works from server console, adding true or flase.

creative.allUsers - activate creative all players

creative.toggleCreativeModeUser PLAYERNAME o ID64 de steam

creative.freeRepair - no cost repair

creative.freeBuild - build without mats

creative.freePlacement - build without restrictions

creative.unlimitedIO - cable longer and invisible

woul be possible implement this to activate them when toggle admin mode and disable on player mode?

In the config MODES->Mode->OnAdmin
You will find
"Autorun Commands Use Forward Slash '/' For Chat-Commands & Leave It Blank For Console-Commands"

AND

"Blocked Commands"

Simply add the commands you would like to be auto-executed upon entering admin mode or the player

And if you would like to block certain commands either in admin or player mode simply add em (avoid single letter commands at checks based on IF blocked commands CONTAINS)

Bad Land

Posted

23 hours ago, Xray said:

In the config MODES->Mode->OnAdmin
You will find
"Autorun Commands Use Forward Slash '/' For Chat-Commands & Leave It Blank For Console-Commands"

AND

"Blocked Commands"

Simply add the commands you would like to be auto-executed upon entering admin mode or the player

And if you would like to block certain commands either in admin or player mode simply add em (avoid single letter commands at checks based on IF blocked commands CONTAINS)

i tried, adding all commands with true when you change to admin and same commands to false when return to player, and dosent works, maybe did  something wrong

Bad Land

Posted

43 minutes ago, BadLandPVE said:

i tried, adding all commands with true when you change to admin and same commands to false when return to player, and dosent works, maybe did  something wrong

how can i define only toggle the command to player runs admin?

"Autorun Commands Use Forward Slash '/' For Chat-Commands & Leave It Blank For Console-Commands": [
            "creative.toggleCreativeModeUser ********* true. changing * for steamid

Xray

Posted

14 hours ago, BadLandPVE said:

how can i define only toggle the command to player runs admin?

"Autorun Commands Use Forward Slash '/' For Chat-Commands & Leave It Blank For Console-Commands": [
            "creative.toggleCreativeModeUser ********* true. changing * for steamid

Try this

"Autorun Commands Use Forward Slash '/' For Chat-Commands & Leave It Blank For Console-Commands": [
  "creative.allUsers",
  "creative.toggleCreativeModeUser",
  "creative.freeRepair",
  "creative.freeBuild",
  "creative.freePlacement",
  "creative.unlimitedIO"
],
Bad Land

Posted

hi, console is spaming Calling hook OnPlayerViolation resulted in a conflict between the following plugins: AdminToggle - False (Boolean), Vanish (True (Boolean))
 how can i fix it?

Xray

Posted

On 10/16/2024 at 7:40 PM, BadLandPVE said:

hi, console is spaming Calling hook OnPlayerViolation resulted in a conflict between the following plugins: AdminToggle - False (Boolean), Vanish (True (Boolean))
 how can i fix it?

There is another plugin "Vanish" calling the hook "OnPlayerViolation" that insists on triggering the violation the player makes

Either change the code in AdminToggle to also return "true" (Not recommended)
Or Change the code in "Vanish" to return false so the conflict stops (I would recommend)
Or the alternative option removed the code in either plugin

Bad Land

Posted

On 10/18/2024 at 8:45 AM, Xray said:

There is another plugin "Vanish" calling the hook "OnPlayerViolation" that insists on triggering the violation the player makes

Either change the code in AdminToggle to also return "true" (Not recommended)
Or Change the code in "Vanish" to return false so the conflict stops (I would recommend)
Or the alternative option removed the code in either plugin

can you tell me please witch line i need change?

 

Xray

Posted

On 11/7/2024 at 10:09 PM, BadLandPVE said:

can you tell me please witch line i need change?

 

In vanish plugin its line 669
Change 
 

private object? OnPlayerViolation(BasePlayer player, AntiHackType type, float amount) => IsInvisible(player) ? (object)true : null;

To
 

private object? OnPlayerViolation(BasePlayer player, AntiHackType type, float amount) => IsInvisible(player) ? (object)false : null;



Or in admin toggle image.png.1e64c2ab33ba2c46aeea59b8ea91f242.png
Change this line from return false; to return true;

Bad Land

Posted (edited)

done. thank you very much!

i changed like you recommended me, vanish line.

Edited by BadLandPVE
NavyChief

Posted

Sorry if this has been answered already and it may be a moot question... but does this disable the no clip for moderators if the toggle admin off??

Bad Land

Posted

no more updates¿? 

GamerHD1991

Posted

How to Fix the Problem:

    Open the AdminToggle.cs file using a text editor or an IDE.
    Go to line 3299 (you should see effect.Clear();).
    Replace it with one of the following:

Option 1 (Recommended):

effect.Clear(false);

This will clean up the effect locally without sending the update to connected players. It is usually sufficient and reduces network load.

Option 2 (Network-wide cleanup):

effect.Clear(true);

This will clean up the effect and broadcast the update to all players. Use this if you need everyone to see the change.
Recommendation:

    Use false if you’re unsure, as it’s the safer option and works locally.
    Use true only if the effect cleanup needs to be visible to all connected players.

Final Step:

After making the change, reload the plugin or restart the server, and the error should be gone.

 

  • Like 1
Xray

Posted

On 2/6/2025 at 10:55 PM, BadLandPVE said:

no more updates¿? 

Try this ⬇️⬇️⬇️
Or download new version 3.1.18

3 hours ago, GamerHD1991 said:
How to Fix the Problem:

    Open the AdminToggle.cs file using a text editor or an IDE.
    Go to line 3299 (you should see effect.Clear();).
    Replace it with one of the following:

Option 1 (Recommended):

effect.Clear(false);

This will clean up the effect locally without sending the update to connected players. It is usually sufficient and reduces network load.

Option 2 (Network-wide cleanup):

effect.Clear(true);

This will clean up the effect and broadcast the update to all players. Use this if you need everyone to see the change.
Recommendation:

    Use false if you’re unsure, as it’s the safer option and works locally.
    Use true only if the effect cleanup needs to be visible to all connected players.

Final Step:

After making the change, reload the plugin or restart the server, and the error should be gone.

 

 

IlIDestroyerIlI

Posted

Error while compiling AdminToggle: The type name 'HttpClient' could not be found in the namespace 'System.Net.Http'. This type has been forwarded to assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Consider adding a reference to that assembly. | Line: 3315, Pos: 24


After using the newest upload i get this message. 

Screepers

Posted (edited)

AdminToggle v3.1.19 by Xray:   EVERYTIME... I swap out of admin mode, back to player mode, I get STUCK in the terrain and look like I have a seizure.  Please pretty please fix.  (or add a stay where you are and just swap) no translation to the ground or anything. please.

After seeing that you are no longer maintaining it.  When I fix it (I've done it before just need to redo it), how can I merge my changes into the code so if you do a compatibility update it gets added?

 

 

Edited by Screepers
Geini

Posted

On 2/12/2025 at 3:30 AM, Screepers said:

After seeing that you are no longer maintaining it.  When I fix it (I've done it before just need to redo it), how can I merge my changes into the code so if you do a compatibility update it gets added?

I have a ticket open for the same problem.
If you get it fixed, can you send the changes to me or to all of us?

would be very happy obout it!

Maybe just add the changes to my ticket... and hope that there might be a proper fix for it.

..../support/19124-teleporting-back-broken

TheAdmin

Posted

Hi is it still worth getting this plugin even if it's not supported, I want to track my admins and have them not be in admin mode all the time.?

Screepers

Posted

On 2/24/2025 at 2:04 AM, TheAdmin said:

Hi is it still worth getting this plugin even if it's not supported, I want to track my admins and have them not be in admin mode all the time.?

I still find use out of it, and have found no alternative.

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Like 2

User Feedback

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.4k

Files Sold

Total number of files sold.

2.3m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.