Raised This Month: $319 Target: $400
 79%   Almost there!

[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 - 27 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
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 02:07.


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