Raised This Month: $ Target: $400
 0% 

[L4D2] Vote Blocker v1.3.4


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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 #38

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
 



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 20:20.


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