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

[REQ] SERVER AUTO SHUTDOWN DOESN'T WORKED


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jungjunghoo
Senior Member
Join Date: Sep 2009
Old 02-03-2011 , 15:04   [REQ] SERVER AUTO SHUTDOWN DOESN'T WORKED
Reply With Quote #1

Quote:
#pragma semicolon 1
#include <sourcemod>

public Plugin:myinfo =
{
name = "Autorestart",
author = "[FG] Silent",
version = "1.0.0",
url = "www.finalgaming.co.uk",
}

public OnPluginStart()
{
CreateTimer(10.0, CheckTime, 0, TIMER_REPEAT|TIMER_FLAG_NO_MAPCHANGE);
}

public Action:CheckTime(Handle:timer)
{
decl String:sTime[16];
new gettime = GetTime();

FormatTime(sTime, sizeof(sTime), "%H%M", gettime);
new time = StringToInt(sTime);

if(time == 0427)
{
Restart();
}
else
{
return;
}
}

public Restart()
{
ServerCommand("_restart"),
LogAction(0, -1, "Gameserver was restarted successfully.");
}
WHY?
doesn't work. help me
my plan is AM 04:27 . will be shut down my server.
jungjunghoo is offline
Rizla
SourceMod Donor
Join Date: Jun 2010
Old 02-03-2011 , 17:57   Re: [REQ] SERVER AUTO SHUTDOWN DOESN'T WORKED
Reply With Quote #2

do what i do and use a php script
Rizla is offline
thresh0ld
Senior Member
Join Date: Sep 2009
Location: Hell
Old 02-03-2011 , 20:33   Re: [REQ] SERVER AUTO SHUTDOWN DOESN'T WORKED
Reply With Quote #3

shouldn't this be on the scripting section
thresh0ld is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-04-2011 , 03:58   Re: [REQ] SERVER AUTO SHUTDOWN DOESN'T WORKED
Reply With Quote #4

Quote:
Originally Posted by thresh0ld View Post
shouldn't this be on the scripting section
No... I don't think so. He have to make more same topics all over the forums sections.

That plugin work in right time..
- Event time result is 427 instead 0427, but it works
- I would use "quit" instead "_restart"
- If server re-boot automatically after shutdown, this will launch/shutdown server whole minute
Bacardi is offline
jungjunghoo
Senior Member
Join Date: Sep 2009
Old 02-04-2011 , 05:10   Re: [REQ] SERVER AUTO SHUTDOWN DOESN'T WORKED
Reply With Quote #5

Quote:
Originally Posted by Bacardi View Post
No... I don't think so. He have to make more same topics all over the forums sections.

That plugin work in right time..
- Event time result is 427 instead 0427, but it works
- I would use "quit" instead "_restart"
- If server re-boot automatically after shutdown, this will launch/shutdown server whole minute
ok. today night. i re-try.
and i just shutdown server. no reboot.
jungjunghoo 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 01:42.


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