AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [L4D2] Block manual idle (https://forums.alliedmods.net/showthread.php?t=325626)

Alex101192 06-30-2020 04:13

[L4D2] Block manual idle
 
1 Attachment(s)
Just a small modification I made of the idle fix plugin. Instead of having idle blocked only on certain conditions, in this one it will be fixed for ever. The only way to go idle is to stay afk and have the server put you in it.

I made this because there is just so much exploits that can be done with it, that the original plugin just was not enough.

I am not posting the source code because I lost it long time ago, but I still use this compiled version. So just wanted to share for anyone who would like to use it.

Ruthless1 07-01-2020 10:18

Re: [L4D2] Block manual idle
 
So when your plugin is loaded, does that mean someone cannot just click 'take a break' & go idle?

canadianjeff 08-04-2020 21:48

Re: [L4D2] Block manual idle
 
my plugin is very similar the source code is provided and you can block unblock idle with a cvar

SEGA EMPRESS ERIS 09-18-2020 16:30

Re: [L4D2] Block manual idle
 
Can you or anyone provide a link to said Idle block plugin with the source code as this one was taken down due to no source code.

thank you.

Marttt 09-19-2020 09:06

Re: [L4D2] Block manual idle
 
Well I don't know if it would work but try adding

PHP Code:

public OnPluginStart()
{
    
RegConsoleCmd("go_away_from_keyboard"Command_AFK);


and

PHP Code:

public Action:Command_AFK(clientargs)
{
    return 
Plugin_Handled;



Silvers 09-20-2020 12:27

Re: [L4D2] Block manual idle
 
Should be using AddCommandListener not RegConsoleCmd. Read the formers API description why.

xZk 09-20-2020 14:39

Re: [L4D2] Block manual idle
 
1 Attachment(s)
Here's an example: https://forums.alliedmods.net/showpo...47&postcount=6
and in case anyone is interested I will shared an antispam version of the idle command, which can help prevent glitches of damage to the player


All times are GMT -4. The time now is 23:59.

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