Raised This Month: $ Target: $400
 0% 

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


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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 #22

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
 



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