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

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


Post New Thread Reply   
 
Thread Tools Display Modes
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 #21

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
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 #22

it dont work automaty
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 #23

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 #24

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
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 #25

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 #26

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 #27

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 - 172 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 #28

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 #29

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
PLTAT
New Member
Join Date: Apr 2023
Old 01-30-2024 , 13:44   Re: [NMRiH] Clear map 1.2.0 [2016/09/15]
Reply With Quote #30

I don't know how use this web.
english bad
---- ---- ---- ----
this is a good plugin
now 2024
maybe too low version
can you update?
PLTAT 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 19:17.


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