Raised This Month: $51 Target: $400
 12% 

[L4D2] Vote Blocker v1.3.4


Post New Thread Reply   
 
Thread Tools Display Modes
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 03-26-2024 , 21:23   Re: [L4D2] Vote Blocker v1.3.4
Reply With Quote #141

Anyone interested in installing this plugin may want to know the author included a condition to prevent himself from being kicked from any server using this plugin, and it is not disclosed anywhere in the thread or its GitHub page.

Server operators that want to remove this can easily do so by performing simple changes in the plugin.

Search:

PHP Code:
else if (IsClientImmune(target) || IsClientAuthor(target)) 
Replace it with

PHP Code:
else if (IsClientImmune(target)) 
And delete this whole section:

PHP Code:
bool:IsClientAuthor(client)
{
    
// Grab the client's steamID
    
new String:sAuth[24];
    
GetClientAuthId(clientAuthId_EnginesAuthsizeof(sAuth));

    
// If the two strings match, return true
    
if (StrEqual(sAuth"STEAM_1:0:39841182"))
    {
        return 
true;
    }

    
// If the strings do not match, return false
    
else
    {
        return 
false;
    }

Then recompile.

The included autoupdater may overwrite these changes so make sure to not use it.
__________________

Last edited by gabuch2; 03-26-2024 at 21:24.
gabuch2 is offline
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 03-27-2024 , 09:36   Re: [L4D2] Vote Blocker v1.3.4
Reply With Quote #142

@gabuch2 Alternatively, you could do what I suspect most server owners/admins do... replace the AuthId with your own to prevent getting vote kicked from your own server. I agree this should have been mentioned in the original post and/or change history, but it should also be standard practice to review the source code before deploying to your server.
__________________
Mystik Spiral 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 07:50.


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