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

[l4d2] Vote Blocker ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
weffer
Member
Join Date: Oct 2020
Old 03-13-2021 , 18:09   [l4d2] Vote Blocker ?
Reply With Quote #1

Hi:

https://forums.alliedmods.net/showpo...40&postcount=1

There is some other complement to block the votes, when I try to use it, I get an error in compilation due to an inclue the cURL.inc for sm1.11

weffer is offline
Tank Rush
Senior Member
Join Date: May 2019
Location: Argentina
Old 03-13-2021 , 18:43   Re: [l4d2] Vote Blocker ?
Reply With Quote #2

I have changed FCVAR_PLUGIN to FCVAR_NONE
I also removed:
PHP Code:
#include <cURL>
#include <updater> 
And this too:
PHP Code:
public OnAllPluginsLoaded()
{
    
// If the updater plugin is present, set the URL of the update file
    
if (LibraryExists("updater"))
    {
        
Updater_AddPlugin(UPDATE_URL);
    }
}

public 
OnLibraryAdded(const String:name[])
{
    
// When the updater plugin is detected, set the URL of the update file
    
if (StrEqual(name"updater"))
    {
        
Updater_AddPlugin(UPDATE_URL);
    }

So that voteblocker does not require the cURL extension and Updater plugin.
voteblocker.sp compiles without errors, I only get 2 warnings:
Code:
//SourceMod Batch Compiler
// by the SourceMod Dev Team


//// voteblocker.sp
//
// D:\Program Files\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\voteblocker.sp(218) : warning 234: symbol "GetClientAuthString" is marked as deprecated: Use GetClientAuthId
//
//
// D:\Program Files\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\voteblocker.sp(902) : warning 234: symbol "GetClientAuthString" is marked as deprecated: Use GetClientAuthId
//
//
// Code size:            16564 bytes
// Data size:            19652 bytes
// Stack/heap size:      16384 bytes
// Total requirements:   52600 bytes
//
// 2 Warnings.
//
// Compilation Time: 0,11 sec
// ----------------------------------------

Press enter to exit ...
Try this if it works for you
Attached Files
File Type: sp Get Plugin or Get Source (voteblocker.sp - 81 views - 31.8 KB)
__________________
Sorry i don't speak english very well

--->My name is Source and I'm on Steam<---
Discord: Source#9382

Last edited by Tank Rush; 03-13-2021 at 18:50.
Tank Rush is offline
weffer
Member
Join Date: Oct 2020
Old 03-13-2021 , 21:28   Re: [l4d2] Vote Blocker ?
Reply With Quote #3

thanks!!!
weffer is offline
Tank Rush
Senior Member
Join Date: May 2019
Location: Argentina
Old 03-13-2021 , 22:15   Re: [l4d2] Vote Blocker ?
Reply With Quote #4

Here another version without errors or warnings
Try this:
Attached Files
File Type: sp Get Plugin or Get Source (voteblocker.sp - 156 views - 31.8 KB)
__________________
Sorry i don't speak english very well

--->My name is Source and I'm on Steam<---
Discord: Source#9382
Tank Rush is offline
Reply


Thread Tools
Display Modes

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 15:51.


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