This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[NMRiH] Clear map 1.2.0 [2016/09/15]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Shazam
Junior Member
Join Date: Feb 2021
Plugin ID:
4593
Plugin Version:
1.2.0
Plugin Category:
Admin Commands
Plugin Game:
No More Room in Hell
Plugin Dependencies:
    Servers with this Plugin:
    39 
    Plugin Description:
    Remove unnecessary items & zombies from the map.
    Old 08-26-2021 , 02:14   Re: [NMRiH] Clear map 1.2.0 [2016/09/15]
    Reply With Quote #1

    Quote:
    Originally Posted by Grey83 View Post
    Shazam, add "!" sign before CheckEntity() at line 227 plz.

    if(CheckEntity(i, class, sizeof(class)) || !IsValidItem(i, class))
    ==>
    if(!CheckEntity(i, class, sizeof(class)) || !IsValidItem(i, class))
    thanks you , work "sm_clear" but is no automatic...
    in console: [Clear map] Autoclearing is disabled.
    Shazam is offline
    Shazam
    Junior Member
    Join Date: Feb 2021
    Old 08-26-2021 , 02:25   Re: [NMRiH] Clear map 1.2.0 [2016/09/15]
    Reply With Quote #2

    Quote:
    public void Event_SC(Event event, const char[] name, bool dontBroadcast)
    {
    static int state;
    if((bState3 = (state = event.GetInt("state")) == 3))
    {
    if(fTimer >= 1)
    {
    PrintToServer("%sAutoclearing is enabled.", CON_PREFIX);
    hTimer = CreateTimer(fTimer, AutoClear, _, TIMER_REPEAT);
    }
    }
    else
    {
    if(fTimer >= 1)
    {
    if(hTimer) delete hTimer;
    PrintToServer("%sAutoclearing is disabled.", CON_PREFIX);
    }
    if(state < 2 || state > 3) ClearMap();
    }
    }
    i change by in line 173:

    Quote:
    public void Event_SC(Event event, const char[] name, bool dontBroadcast)
    {
    static int state;
    if((bState3 = (state = event.GetInt("state")) == 3))
    {
    if(fTimer >= 1)
    {
    PrintToServer("%sAutoclearing is enabled.", CON_PREFIX);
    hTimer = CreateTimer(fTimer, AutoClear, _, TIMER_REPEAT);
    }
    }
    else
    {
    if(fTimer <= 1)
    {
    if(hTimer) delete hTimer;
    PrintToServer("%sAutoclearing is disabled.", CON_PREFIX);
    }
    if(state < 2 || state > 3) ClearMap();
    }
    }

    Last edited by Shazam; 08-26-2021 at 02:30.
    Shazam is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 08-26-2021 , 08:46   Re: [NMRiH] Clear map 1.2.0 [2016/09/15]
    Reply With Quote #3

    Quote:
    Originally Posted by Shazam View Post
    i change by in line 173:
    There was no need to change anything there.
    This check is only needed to disable the timer if it is active.

    What is the value of the sm_clear_map_timer variable?
    __________________
    Grey83 is offline
    Shazam
    Junior Member
    Join Date: Feb 2021
    Old 08-26-2021 , 09:55   Re: [NMRiH] Clear map 1.2.0 [2016/09/15]
    Reply With Quote #4

    Quote:
    Originally Posted by Grey83 View Post
    There was no need to change anything there.
    This check is only needed to disable the timer if it is active.

    What is the value of the sm_clear_map_timer variable?
    by default 30
    Shazam is offline
    Shazam
    Junior Member
    Join Date: Feb 2021
    Old 08-26-2021 , 04:49   Re: [NMRiH] Clear map 1.2.0 [2016/09/15]
    Reply With Quote #5

    it dont work automaty
    Shazam is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 08-26-2021 , 11:39   Re: [NMRiH] Clear map 1.2.0 [2016/09/15]
    Reply With Quote #6

    Shazam, in state 3 (during round) autoclearing must be disabled.
    Otherwise, problems may arise when the players complete the task.
    __________________
    Grey83 is offline
    Shazam
    Junior Member
    Join Date: Feb 2021
    Old 08-26-2021 , 17:39   Re: [NMRiH] Clear map 1.2.0 [2016/09/15]
    Reply With Quote #7

    Quote:
    Originally Posted by Grey83 View Post
    Shazam, in state 3 (during round) autoclearing must be disabled.
    Otherwise, problems may arise when the players complete the task.
    Ah, ok, but i want to use it only for pvp.
    do i how enable it the autoclearing?
    Shazam is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 08-27-2021 , 13:37   Re: [NMRiH] Clear map 1.2.0 [2016/09/15]
    Reply With Quote #8

    Quote:
    Originally Posted by Shazam View Post
    Ah, ok, but i want to use it only for pvp.
    do i how enable it the autoclearing?
    In this version only sm_clear_map_timer 0 turns off auto clear.
    Attached Files
    File Type: sp Get Plugin or Get Source (nmrih_clear_map 1.2.5 always enabled.sp - 181 views - 6.7 KB)
    __________________

    Last edited by Grey83; 08-27-2021 at 13:38.
    Grey83 is offline
    Shazam
    Junior Member
    Join Date: Feb 2021
    Old 08-28-2021 , 05:31   Re: [NMRiH] Clear map 1.2.0 [2016/09/15]
    Reply With Quote #9

    thanks you, but does not clean during the round.
    Shazam is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 11-10-2021 , 02:39   Re: [NMRiH] Clear map 1.2.0 [2016/09/15]
    Reply With Quote #10

    Request to add the function of automatically deleting zombies.
    Same as automatic deletion of items.
    Some maps have too many zombies, 400+ zombies exist, which will cause high ping of the server and cause lag
    When the zombies are manually deleted, the server ping becomes smooth.

    map
    https://steamcommunity.com/sharedfil...?id=2637158798
    https://steamcommunity.com/sharedfil...?id=2593425026
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor
    phoenix0001 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 20:01.


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