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

[L4D2] Gifts Drop & Spawn


Post New Thread Reply   
 
Thread Tools Display Modes
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 05-22-2021 , 21:32   Re: [L4D2] Gifts Drop & Spawn
Reply With Quote #91

If you don't want these messages you have three options:

1) Remove the "LogError(..." lines.

or

2) Change the OnConfigsExecuted method to this:

PHP Code:
public void OnConfigsExecuted()
{
    
GetCvars();

    
// if (!ConnectDB())
    // {
        // LogError("Connecting to database failed. Read error log for further details.");
        // LogError("[GIFTS] Not database found. Points is disabled");
        // bDatabase = false;
    // }
    // else
    // {
        // bDatabase = true;
    // }

or

3) Btw here is a version attached with a new cvar that does that:
l4d2_gifts_databaseconnect, default: 1, Should try to connect to a database?
Probably you have to add it to your already generated l4d2_gifts.cfg config file and set to 0.

Notes:
  • All the previous files from the .zip are still necessary
  • Won't compile through "Get Plugin" cause has external includes.
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_gifts.sp - 116 views - 30.1 KB)
__________________

Last edited by Marttt; 05-22-2021 at 22:51.
Marttt is offline
weffer
Member
Join Date: Oct 2020
Old 05-23-2021 , 08:57   Re: [L4D2] Gifts Drop & Spawn
Reply With Quote #92

error compiling with sm 1.11.

weffer is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 05-23-2021 , 14:03   Re: [L4D2] Gifts Drop & Spawn
Reply With Quote #93

Quote:
Originally Posted by Marttt View Post
If you don't want these messages you have three options:

1) Remove the "LogError(..." lines.

or

2) Change the OnConfigsExecuted method to this:

PHP Code:
public void OnConfigsExecuted()
{
    
GetCvars();

    
// if (!ConnectDB())
    // {
        // LogError("Connecting to database failed. Read error log for further details.");
        // LogError("[GIFTS] Not database found. Points is disabled");
        // bDatabase = false;
    // }
    // else
    // {
        // bDatabase = true;
    // }

or

3) Btw here is a version attached with a new cvar that does that:
l4d2_gifts_databaseconnect, default: 1, Should try to connect to a database?
Probably you have to add it to your already generated l4d2_gifts.cfg config file and set to 0.

Notes:
  • All the previous files from the .zip are still necessary
  • Won't compile through "Get Plugin" cause has external includes.

Thank you Martt works perfectly
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie
Mi.Cura is offline
santdrback
Member
Join Date: Apr 2020
Old 11-28-2022 , 21:01   Re: [L4D2] Gifts Drop & Spawn
Reply With Quote #94

Quote:
Originally Posted by Marttt View Post
If you don't want these messages you have three options:

1) Remove the "LogError(..." lines.

or

2) Change the OnConfigsExecuted method to this:

PHP Code:
public void OnConfigsExecuted()
{
    
GetCvars();

    
// if (!ConnectDB())
    // {
        // LogError("Connecting to database failed. Read error log for further details.");
        // LogError("[GIFTS] Not database found. Points is disabled");
        // bDatabase = false;
    // }
    // else
    // {
        // bDatabase = true;
    // }

or

3) Btw here is a version attached with a new cvar that does that:
l4d2_gifts_databaseconnect, default: 1, Should try to connect to a database?
Probably you have to add it to your already generated l4d2_gifts.cfg config file and set to 0.

Notes:
  • All the previous files from the .zip are still necessary
  • Won't compile through "Get Plugin" cause has external includes.
no work in sourcemod 1.11
santdrback is offline
apples1949
Junior Member
Join Date: Apr 2021
Old 12-01-2022 , 02:46   Re: [L4D2] Gifts Drop & Spawn
Reply With Quote #95

Quote:
Originally Posted by santdrback View Post
no work in sourcemod 1.11
try to use this:https://github.com/fbef0102/L4D2-Plu...ter/l4d2_gifts
apples1949 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 19:36.


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